+ }; ^. ?% f& y, I, y* n; l========================
) ~9 E. y( K( u/ v- xg++ -o test test.cpp
' L% A; B5 V5 P. \6 k: u9 G' F
/usr/bin/ld:???????"--eh-frame-hdr"
" ]% v2 \' n7 B1 D' O/usr/bin/ld: use the --help option for usage information
: N& S2 j, `9 r3 [) U' v% [collect2: ld returned 1 exit status
, K' _* Z1 V: v: f
========================
' N, I& W* G, a3 @3 v: [6 Y源代码绝对没有问题
1 |' N' o6 ]( a; K#include <string>
+ W' O$ X0 \) o* C# Y#include <list>
5 j+ X+ M# Z7 Y0 f
#include <iostream>
4 z$ \* q/ w: W! N2 z: e2 H7 }2 g
using namespace std;
: v5 s# G6 y: f: ^4 t' a
int main () {
9 L, ^" j% c$ g- w8 _
list<string> s;
s/ g2 O/ |7 E F# G! u3 Z s.push_back( "111") ;
! y+ E3 ]3 ?) Z s.push_back( "222") ;
& ^5 D; I4 Y9 e! @( J7 B3 V2 \ s.push_back( "333") ;
% B9 J1 r7 k& Z* A7 G d( h: z s.push_back( "444") ;
- F, h6 O& V8 r8 Z cout<< s.back() << endl ;
+ P7 N; O0 ~9 L. H; T) I# T* Z}
g3 Y8 y6 T' c. }& R- ^
$ {( q# `9 r/ @! e' t$ R但是编译出现问题
- i( s, [( g0 o% O+ i请问如何解决
6 o/ Y7 {1 \. j) ^# z3 P1 _: S) Z谢了先