From: Michal 'hramrach' Suchanek Date: 2005-01-03T21:09:36+09:00 Subject: Re: Ruby Extensions using OS X Frameworks On Thu, Dec 23, 2004 at 12:06:04AM +0900, David Craine wrote: > I'm trying to write a ruby extension which accesses the > AddressBook.framework on OS X. I can get the extension to compile but > get undefined symbol errors for each of the AddressBook APIs when I > load the extension. It's pretty clear that it's not able to find the > AddressBook library module, but I'm not quite sure how to tell it where > to look. Anyone have any experience with accessing OS X frameworks in > this way? Generally you need to link in the framework with some flag (probably -framework or -Wl,-framework -Wl,) during link. Since LDFLAGS are not supported you should put this to DLDFLAGS. You can try to build the extension with the ruby from fink which does not suppress undefined symbols and would not link an extension without the required libraries. HTH Michal Suchanek