Mail Archives: djgpp/1998/09/10/00:31:31
Erik och Marianne Berglund wrote:
>
> Hello, I'm trying to program C++ with DJGPP.
> Help me please! I just do not understand how to invoke the compilers,and especially what programs to use for what purpose!
> there are GXX,GCC,G++ and so on but which one do I use for what?
> I tried, for example, the following program:
`gcc' is the compiler (basically). However, in order to link (make an
executable) from C++ files, one needs to include the C++ library. One
could do this like:
gcc -o foo.exe foo.cc -lstdcxx
The `gxx' and `g++' programs simply do this for you, so the above is
equivalent to
g++ -o foo.exe foo.cc
Thus, you should use `g++' or `gpp' when linking C++. (`gxx' is older
and lacks a few subtle features.)
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -