newbie question on linking classes

John Love-Jensen
Thu Mar 27 16:40:00 GMT 2008

Hi Koyel,

You are compiling and linking source.cpp.

You need to compile and link all your source code.

g++ source.cpp uno.cpp dos.cpp tres.cpp -o myapp

If you do your compiling separate from your linking:
g++ source.o uno.o dos.o tres.o -o myapp


More information about the Gcc-help mailing list