[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't find ceil function in math library

From: Minxuan Zhuang
Subject: Re: can't find ceil function in math library
Date: Thu, 3 Jul 2014 19:24:55 +0800

I've changed AC_CHECK_LIB([m], [ceil]) to AC_CHECK_LIB([m], [main]) and it works. according to conftest.c, libtool generate a small peace of code to check whether the specific function exists or not. for AC_CHECK_LIB([m], [main]), the code is:
    return main();
    return 0;
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 <address@hidden> wrote:
I have a 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]