Mail Archives: djgpp/1999/01/27/02:58:53
On Tue, 26 Jan 1999, Ralf Neumann wrote:
> But how do I go on, and if I have to use something like ld -o main.exe
> a.o b.o in the end, how do I include iostream (here I guess -lgpp
> doesn't work).
This is explained in the file README.1ST, and again in the beginning
of the DJGPP FAQ list.
To link several C++ object files together, say something like this:
gcc -o main.exe a.o b.o -lstdcxx -lm
(You can omit -lm if you don't use non-ANSI math functions.)
- Raw text -