[plt-scheme] linking with mzc (was: scheme_check_threads gives Bus error on OS X)

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Nov 21 16:37:41 EST 2005

At Sat, 19 Nov 2005 18:46:40 -0500, Jon Rafkind wrote:
> Everything compiled ok but when I load the library mzc outputted, 
> _loader.dylib, using the standard ffi-lib technique I get the following:
> ~/tmp/xquest-0.1 $ mzscheme -f xquest.ss
> Welcome to MzScheme version 299.406, Copyright (c) 2004-2005 PLT Scheme Inc.
> ffi-lib: couldn't open "liballeg.dylib" (dlcompat: dyld: mzscheme 
> Undefined symbols:
> __allegroscheme_module_name
> __blitscheme_module_name
> __bmpscheme_module_name
> __cadigischeme_module_name
> __camidischeme_module_name
> __cblit16scheme_module_name
> __cblit24scheme_module_name
> __cblit32scheme_mod)

Sorry - I don't quite follow what you're doing. "_loader.dylib" is
normally the output of compiling multiple Scheme sources (and linking
them into a single shared library). But you're starting with
Objective-C code, right? Can you tell me more about the sequence of mzc
commands that you use, and more about the content of the input files?


Posted on the users mailing list.