From: nobu.nokada@... Date: 2005-04-16T16:24:04+09:00 Subject: Re: mkmf questions Hi, At Sat, 16 Apr 2005 01:50:24 +0900, Matthew Thill wrote in [ruby-talk:138371]: > have_library: checking for atan() in -lm... -------------------- no > > "gcc -o conftest -I/home/matt/software/ruby/libxml-ruby > -I/usr/local/lib/ruby/1.8/x86_64-linux -I/usr/lib64/include -g -O2 > conftest.c -L'/usr/lib64/lib' -Wl,-R'/usr/lib64/lib' -L'/usr/local/lib' > -Wl,-R'/usr/local/lib' -L'/usr/local/lib' -Wl,-R'/usr/local/lib' > -rdynamic -Wl,-export-dynamic -lnsl -lruby-static -lm -lnsl -ldl > -lcrypt -lm -lc" > conftest.c: In function `t': > conftest.c:4: error: too few arguments to function `atan' Seems atan() is defined as a macro. Try changing atan in have_library to other math function. Or, to macro_defined?("atan", "") or have_library("m", "atan") -- Nobu Nakada