Use FFI to dynamically load shared library on Mac OS 10.5

John M McIntosh johnmci at
Fri Jan 18 21:32:53 UTC 2008

Well if you are using the carbon library



ah and oh look missing comment about  SqueakDebug

if you set SqueakDebug  to 1 versus 0, then the mac carbon VM will  
print all sorts of dianostics information as it tries to file the  
module, and entry point you've asked for.
This information likely will go to your console log

On Jan 18, 2008, at 12:55 PM, James Foster wrote:

> I'm trying to dynamically load a shared library (.so) and  
> consistently get "Unable to find function address." I have tried  
> putting the library in a variety of locations (next to the  
> executable, next to the image, next to the FFI package, etc.) and I  
> have set the environment variable DYLD_LIBRARY_PATH to the location  
> of the library. Nothing seems to work (although the FFI tests all  
> pass). Any advice?
> James Foster

John M. McIntosh <johnmci at>
Corporate Smalltalk Consulting Ltd.

More information about the Squeak-dev mailing list