newbie question on linking classes

John Love-Jensen eljay@adobe.com
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.

e.g.
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

HTH,
--Eljay



More information about the Gcc-help mailing list