Message-Id: <200008081710.NAA01867@delorie.com> Date: Tue, 08 Aug 2000 19:05:44 +0200 To: donho AT altern DOT org X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b From: "Eli Zaretskii" CC: djgpp AT delorie DOT com In-reply-to: <39902008.18806900@news.free.fr> (donho@altern.org) Subject: Re: My GCC does not compile the C++ source References: <39902008 DOT 18806900 AT news DOT free DOT fr> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: donho AT altern DOT org (Don HO) > Newsgroups: comp.os.msdos.djgpp > Date: Tue, 08 Aug 2000 15:02:38 GMT > > ccaa.cc:2: warning: namespaces are mostly broken in this version of > g++ > > What does it mean? It probably means you have an old version of a C++ compiler that doesn't support namespaces very well. What does "gcc --version" print? > It seems that the GCC is the compiler for C and GXX is the one for > C++. But when I compile the C source with GXX, it works also (I tried > it only one time)! In this case, why GCC.EXE? GXX simply instructs the linker to search C++ libraries when linking your programs. You can compile and link C++ programs with GCC as well, but then you will need to mention -lstdcxx on the link command line; GXX saves you from that trouble. I believe that the file README.1ST and section 8.8 of the DJGPP FAQ list explains this issue in more detail.