Mail Archives: djgpp/2000/08/08/13:10:16
> 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.
- Raw text -