X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: liangx AT 163 DOT com (Wither) Newsgroups: comp.os.msdos.djgpp Subject: Problem with gpp Date: 27 Mar 2002 18:29:43 -0800 Organization: http://groups.google.com/ Lines: 30 Message-ID: <42eb17dc.0203271829.46409ed5@posting.google.com> NNTP-Posting-Host: 61.140.121.131 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1017282584 16893 127.0.0.1 (28 Mar 2002 02:29:44 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 28 Mar 2002 02:29:44 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I tested simple program as following. #test.cc #include #include main() { string s("Hello!"); cout << s.c_str() << endl; } I was prompted errors when I compiled it by gpp command. c:\test>gpp test.cc main.c: In function `int main()': main.c:11: `string' undeclared (first use this function) main.c:11: (Each undeclared identifier is reported only once for each function it appears in.) main.c:11: parse error before `(' token main.c:13: `s' undeclared (first use this function) Actually, I found file "string" under directory "c:\djgpp\lang\cxx-v3". can anyone help me! Best Regards L.X.