Re: [anjuta-list] undefined references to math.
- From: Johannes Schmid <jhs jsschmid de>
- To: Paul Elliott <pelliott blackpatchpanel com>
- Cc: anjuta-list gnome org
- Subject: Re: [anjuta-list] undefined references to math.
- Date: Sat, 26 Mar 2011 20:25:22 +0100
Hi!
> If I just add -lm to CFLAGS will ./configure do proper testing of the math
> library?
libm doesn't have a pkg-config file so you will have to add this
manually to configure.ac:
AC_CHECK_LIB([m],[cos])
You can add more method you need like [cos sin tan].
See also:
http://www.gnu.org/software/gsl/manual/html_node/Autoconf-Macros.html
Regards,
Johannes
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]