newbie question on linking classes

Koyel Mukherjee koyelmjee@gmail.com
Thu Mar 27 19:25:00 GMT 2008


Hi John

Thanks a lot! My code has compiled and linked perfectly now!

Regards
Koyel

On Thu, Mar 27, 2008 at 11:39 AM, John Love-Jensen <eljay@adobe.com> wrote:
> 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