Re: can't find ceil function in math library

2014-07-03 Thread Minxuan Zhuang
call main itself in gcc will cause a crash, why it can works here? On Thu, Jul 3, 2014 at 2:46 PM, Minxuan Zhuang wrote: > hi: > I have a configure.ac file includes: AC_CHECK_LIB([m], [ceil]) > then I got this result: checking for ceil in -lm... no > but a .c file contains ceil fu

can't find ceil function in math library

2014-07-03 Thread Minxuan Zhuang
hi: I have a configure.ac file includes: AC_CHECK_LIB([m], [ceil]) then I got this result: checking for ceil in -lm... no but a .c file contains ceil function works very well with or without -lm, why is that? libtool version: 2.4.2 system: Ubuntu 13.04 ___