how do I execute compile program?

Thomas Lionel SMETS tsmets@altern.org
Sun Jan 2 17:42:00 GMT 2000


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,


More information about the Gcc-help mailing list