( |) R" I! s$ w, m6 w========================
: B0 A) P- ^4 p. A0 Y6 J- H6 S5 B9 }( Og++ -o test test.cpp
& `. |' `) N0 H2 w$ _
/usr/bin/ld:???????"--eh-frame-hdr"
) T. H; d( h; y4 U1 J+ G
/usr/bin/ld: use the --help option for usage information
, {8 t! [5 ?0 ]2 u; w% M; v' Hcollect2: ld returned 1 exit status
5 ~5 s ?# l# l. D5 @* R
========================
2 A$ ~0 f* Q2 X6 S, s4 H. `- k源代码绝对没有问题
+ t4 Y- R* l8 r) y
#include <string>
& ^" P! g6 a- U+ s1 p, }#include <list>
0 v5 j3 G/ M3 g% r#include <iostream>
% F+ ~' w1 j; U5 w; }using namespace std;
7 x( d8 ]9 t) G% _2 Oint main () {
% b' j8 p) t' E0 `
list<string> s;
# x/ `# \1 X& k8 g* T0 T. ^
s.push_back( "111") ;
! L) H6 G. O9 w s.push_back( "222") ;
- w; u5 L$ L! H6 F* { |2 P3 [
s.push_back( "333") ;
# w) e$ o# \7 ?3 E5 f s.push_back( "444") ;
8 Z8 K9 m( V a; @
cout<< s.back() << endl ;
4 e M3 I& j" [}
' f& m; o: q% b# K6 `$ L$ L7 q! x& x: \: q& p
但是编译出现问题
v! a9 u& h+ J3 h( o" |. g请问如何解决
3 [. r* ^) j! w* q8 S+ h
谢了先