Article View: cn.comp.os.linux
Article #10463���д�����gcc2.96�±���û���⣬����gcc3.2.2�±�����?
From: lgn
Date: Sat, 12 Jul 2003 08:38
Date: Sat, 12 Jul 2003 08:38
24 lines
1688 bytes
1688 bytes
�������ҵ�Դ���룬�����ָ��
#include <cstdlib>
#include <unistd.h>
#include <list>
#include <algorithm>
#include <fstream>
main(int argc,char ** argv) {
list<long int> Series;
int n;
for(n=0; n<100; n++)
Series.push_front(n);
Series.sort();
}
��gcc3.2.2����ʾ�Ĵ����ǣ�
simple.c: In function `int main(int, char**)':
simple.c:8: `list' undeclared (first use this function)
simple.c:8: (Each undeclared identifier is reported only once for each
function
it appears in.)
simple.c:8: parse error before `int'
simple.c:12: `Series' undeclared (first use this function)
Technical Details
Message-ID:
<beohcp$m1q$1@mail.cn99.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.cn99.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10b277,d5c99d1487184e15,start X-Google-Attributes: gid10b277,public X-Google-ArrivalTime: 2003-07-12 01:38:25 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.cn99.com!not-for-mail From: "lgn" <liuguonnn@163.com> Newsgroups: cn.comp.os.linux Subject: ���д�����gcc2.96�±���û���⣬����gcc3.2.2�±�����? Date: Sat, 12 Jul 2003 16:38:46 +0800 Organization: Bentium Ltd. (CN99) Lines: 28 Message-ID: <beohcp$m1q$1@mail.cn99.com> NNTP-Posting-Host: 211.71.8.176 X-Trace: mail.cn99.com 1057999065 22586 211.71.8.176 (12 Jul 2003 08:37:45 GMT) X-Complaints-To: usenet@news.cn99.com NNTP-Posting-Date: Sat, 12 Jul 2003 08:37:45 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000