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

Stefan Seefeld seefeld at sympatico.ca
Wed Feb 8 02:40:21 CET 2006


Ben Veal wrote:

> 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 
> important?

Good question. Why don't you call

g++ -o output.exe input.o -lBaseClass -lpthread

instead as everybody else ? :-)

Regards,
		Stefan



More information about the Cplusplus-sig mailing list