Mail Archives: djgpp/1998/09/05/23:45:43
> Did you read README.1ST? It very definitely explains this issue.
Exerpt from "readme.1st":
-------------------
To compile a C or C++ source file into an object file, use this
command line:
gcc -c -Wall myfile.c (for C source)
or
gcc -c -Wall myfile.cc (for C++ source)
This produces the object file myfile.o. The `-Wall' switch turns on
many useful warning messages which are especially beneficial for new
users of GCC.
...
To link a C++ program, use gxx instead of gcc, like this:
gxx -o myprog.exe mymain.o mysub1.o mysub2.o
-------------------
I'm a little bit confused here - after the help from the news groups, my
understanding was that I needed to append -lstdc to gcc in order to compile a
C++ program - here this is not stated. It later states that you only need to
use gxx in order to "link a C++ program". Huh?
--JA$ON--
- Raw text -