Quote:
Originally Posted by jungle
For the life of me I can't figure out the correct gcc switch to link it in.
|
Have you tried passing the "-l" option to GCC when linking?
Code:
# gcc -o <output> <object file names> -lmine
The above will attempt to link "libmine" with the rest of your object files.
You might have to specify the path to the library:
Code:
# gcc -L/path/to/libmine.so -o <output> <object file names> -lmine
NOTE: These examples assume you are trying to link to a shared version of the library.