[C++-sig] linking with non-python libraries

Ben Veal benveal92 at hotmail.com
Fri Feb 10 00:18:28 CET 2006

>>Here is the relevant linking command that is produced by my makefile:
>>g++ -o output.exe input.o -L. -s /usr/lib/libBaseClass.so -lpthread
>>I notice that there is no -l preceeding '/usr/lib/libBaseClass.so' is this 
>Good question. Why don't you call
>g++ -o output.exe input.o -lBaseClass -lpthread
>instead as everybody else ? :-)

I am new to programming in Linux, and the makefile wasn't written by me.
Anyway it doesn't explain the linking problem, can anyone help me?


More information about the Cplusplus-sig mailing list