Re: problems with Linking and loading extensions to Python

On Tue, 24 Oct 2000, Michael Burns wrote:

> What is the right combinations of ld options to use? > > Anybody have
any examples that work for them? > > > Background: > > I am trying to get
an extension to Python to link and load on Mac OS X public beta. > > > I
have tried many combinations of ld options like -dyld, -bundle, -dylinker,
-fvmlib, > > -preload > > > Some of them give me unresolved references or
other ld complaints. 

Are you using Python 2.0 ? 

Take a look at the switches the python2.0/Modules/Makefile uses for
building shared libraries: "-bundle -undefined suppress" 

I used the following command to link the python gtk module:

cc -bundle -undefined warning gtkmodule.o  -L/usr/local/lib 
-L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lgthread -lglib -lXext  -lX11    
.libs/lib_gtkmodule.a   -o _gtkmodule.so


---|  Steven D. Majewski   (804-982-0831)  <sdm7g@Virginia.EDU>  |---
---|  Department of Molecular Physiology and Biological Physics  |---
---|  University of Virginia             Health Sciences Center  |---
---|  P.O. Box 10011            Charlottesville, VA  22906-0011  |---
		"All operating systems want to be unix, 
		 All programming languages want to be lisp." 

Received on Wednesday, 25 October 2000 00:50:03 UTC