I use gcc.
Can someone provide a tutorial or reference for linking external libraries.
I use gcc.
Can someone provide a tutorial or reference for linking external libraries.
I would recommend reading about static and shared libraries. These are OK:
http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html
http://www.network-theory.co.uk/docs/gccintro/gccintro_25.html
These were the first two links that appeared in Google for "gcc linking".
What is the problem you're facing? Are you running Linux?
For linking against dynamically linked libraries:
gcc ... -L/where/library/is -llibname-less-lib
For linking against my libmylib:
gcc ... -L/opt/libmylib/lib -lmylib
Or if using static libraries:
gcc ... /opt/libmylib/lib/libmylib.a