Message-ID: <19990126143913.27518.qmail@hotmail.com> X-Originating-IP: [129.240.157.38] From: "Ralf Neumann" To: djgpp AT delorie DOT com Subject: djgpp Date: Tue, 26 Jan 1999 06:39:12 PST Mime-Version: 1.0 Content-Type: text/plain Reply-To: djgpp AT delorie DOT com 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