From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Lionel SMETS To: help-gcc@gnu.org Subject: Re: how do I execute compile program? Date: Sun, 02 Jan 2000 17:42:00 -0000 Message-id: <386FFAB0.E1B314F8@altern.org> References: <849k43$7fs$1@usenet.kreonet.re.kr> X-SW-Source: 2000-01/msg00015.html In the same level ... I've two classes (c1 & c2) with one using the other, i.e. c2 is a child of c1. Can someone tell me how can I compile this without having the two classes within the same file . I tried have something like g++ -c c1.cpp # Created the Object file of the mother class g++ -c2.cpp -oc1 # Actually I heve no idea what else I could do A second question would be ... What's the point of having a header file in a program ? What do i generated it from ? How do i generate it ? Thanks, Thomas, From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Lionel SMETS To: help-gcc@gnu.org Subject: Re: how do I execute compile program? Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <386FFAB0.E1B314F8@altern.org> References: <849k43$7fs$1@usenet.kreonet.re.kr> X-SW-Source: 2000-q1/msg00015.html Message-ID: <20000401000000.5puoS0c42J8m-qd7vLoZ817g8sgQB-pKSeFIvbr0NBE@z> In the same level ... I've two classes (c1 & c2) with one using the other, i.e. c2 is a child of c1. Can someone tell me how can I compile this without having the two classes within the same file . I tried have something like g++ -c c1.cpp # Created the Object file of the mother class g++ -c2.cpp -oc1 # Actually I heve no idea what else I could do A second question would be ... What's the point of having a header file in a program ? What do i generated it from ? How do i generate it ? Thanks, Thomas,