From: Albert Schlef Date: 2011-03-28T08:21:33+09:00 Subject: Re: mkmf have_func usage Ryan Davis wrote in post #989277: > On Mar 25, 2011, at 8:19, Iain Barnett wrote: > >> 7: int t() { iconv_open(); return 0; } >> /* end */ > > The error is here and is pretty clear whether it were C or ruby. It > failed because it wasn't called with the right number of args. That's not a very good answer. have_func() is supposed to tell you if a function exists; so it tries to link to that function. It can't pass args to the function because it doesn't have any knowledge about the function. The question is why "mkmf" fails to do this. I know that in C you don't have to specify correct (or any) arguments to a function (In C++ it's different). -- Posted via http://www.ruby-forum.com/.