[lug] GNU Linker question

Tom Tromey tromey at cygnus.com
Thu Nov 2 11:39:43 MST 2000


>>>>> "Ken" == Ken Kinder <ken at kenkinder.com> writes:

Ken> Hey, I'm trying to get the GNU Linker to link some files I've
Ken> got. In /usr/contrib/lib/python1.5/config, I've got
Ken> libpython1.5.a (funny place, I know). When I run:

Ken> 	kkinder at tridog1:~/MySQLdb-0.2.2$ ld -L/usr/contrib/lib/python1.5/config -llibpython1.5  _mysqlmodule.o  -L/usr/local/lib/mysql -lmysqlclient -lz -o _mysqlmodule.so

`ld' changes arguments of the form `-lfoo' to `libfoo.a'.
You're using `-llibpython1.5' which turns into `liblibpython1.5.a'.
Instead write `-lpython1.5'.

Tom




More information about the LUG mailing list