[lug] Compilation Problem

Chan Kar Heng khchan at cyberdude.com
Fri Jul 14 12:39:10 MDT 2000


sorry for some of the typo errors

>
>but i gather one should think of it like this:
>
>- linking current file
>  - link current file
>  - whatever reference not found, look for it in the next file to link / keep track
>  - link with next file, pay attention to symbols i want
   ^^^
   - link with next file, pay attention to / look for references i want
>
>thus in this:
>g++ -o result -L ../../lib -llock -ltcp
>
>references not in result.o/result.c will be
> sought for in liblock.so
>referenecs not in result.o/result.c and liblock.so
       ^^^
 references

> will be sought for in libtcp.so
>
>you will get problems if you do this too:
>g++ -L ../../lib -llock -ltcp -c result.o -o result
>
                               ^^
                             shouldn't be there


just after a heavy coding session. 8)



--------------------------------------------
i don't suffer from stress... i'm a carrier.





More information about the LUG mailing list