From: Daniel Berger Date: 2011-03-25T15:43:57+09:00 Subject: Re: mkmf have_func usage On Mar 24, 11:55 pm, Iain Barnett wrote: > Hi, > > I'm wondering if I'm using the have_func from lib mkmf correctly, as I can't seem to get a `true` out of it? > >     require "mkmf" > >     have_func( "iconv_open", "/Library/Frameworks/Libiconv.framework/Headers") >     checking for iconv_open() in /Library/Frameworks/Libiconv.framework/Headers... no >     => false > >     have_func( "iconv_open", "/Library/Frameworks/Libiconv.framework/Versions/1.13.1/include/iconv.h") >     checking for iconv_open() in /Library/Frameworks/Libiconv.framework/Versions/1.13.1/include/iconv.h... no >     => false > > but if I open up the iconv.h file from above I can quite clearly see iconv_open is defined (even though I know not C) > >     #ifndef LIBICONV_PLUG >     #define iconv_open libiconv_open >     #endif > > Any push in the right direction will be much appreciated. My first suggestion would be check the mkmf.log file that was generated and see if it offers up any clues. Regards, Dan