Mail Archives: djgpp/1999/01/26/09:39:19
Hi!
I am trying to figure out how to compile and link several objects
together.
Say we have an object A (class A ...) and an object B. Obj. A is a
part of B (class B .... private: A a;...). A main program is trying to
use obj. B (main .... B b;).
How do I compile and link those objects? I guess that first I have to
compile each separate: gcc -c a.cc -o a.o and gcc -c b.cc -o b.o
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).
Thank you very much indeed for your help!
Ralf
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
- Raw text -