From: Daniel Harple Date: 2006-08-14T22:49:06+09:00 Subject: Re: [MacOS X Ruby-ext] errors in include "CFURL.h" On Aug 14, 2006, at 5:15 AM, Une b�vue wrote: > oK thanxs, i've done that : > > $CFLAGS << " -I > /System/Library/Frameworks/CoreFoundation.framework/Headers " > > in my "extconf.rb" where mkmf is included. > > however i get (at run time) : > dyld: NSLinkModule() error > dyld: Symbol not found: _CFURLCreateWithFileSystemPath > Referenced from: ./osx/ralias/raliasfile.bundle > Expected in: flat namespace > > does i need to change another flag, for example : > LDFLAGS ?? > > should have : > -read_only_relocs suppress > > giving for the whole : > > -flat_namespace -undefined suppress -read_only_relocs suppress ??? Try linking against the framework using the -framework flag. $LDFLAGS << " -framework CoreFoundation". -- Daniel