X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Thomas8675309 AT yahoo DOT com (Tom) Newsgroups: comp.os.msdos.djgpp Subject: Re: C compiles, C++ Does Not Date: 18 Apr 2004 14:59:38 -0700 Organization: http://groups.google.com Lines: 35 Message-ID: <7b68d58f.0404181359.35609866@posting.google.com> References: <407dffc6 DOT 1326884 AT news DOT eatel DOT net> NNTP-Posting-Host: 63.72.148.162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1082325578 7216 127.0.0.1 (18 Apr 2004 21:59:38 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Sun, 18 Apr 2004 21:59:38 +0000 (UTC) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com charlesreed AT eatel DOT net (Charles Reed) wrote: > I recently installed DJGPP on my system. There was no > problem during the install. However I can compile C programs without > any problems but when I try to compile a C++ program I get a long > list of error messages and the file will not compile. > Can anyone suggest what the problem might > be ? Since you didn't give us the program you tried to compile, nor the error messages you received, it's hard to say. But try this: Cut and paste the following program and save it as "hello.cpp": #include int main() { std::cout << "Hello, World."; } Now, compile the program using the following command line: gpp -Wall -W -pedantic hello.cpp -o hello.exe If it compiles successfully, then the problem is with your program or command line invocation, and probably not with your installation. If you get errors, though, post them here, so that people can see what's going on. Good luck. Best regards, Tom