View Single Post
2007-03-12, 03:37   #7
geoff

Mar 2003
New Zealand

13·89 Posts

Quote:
 Originally Posted by jasong This is what I get when I type make: Code: \$ arithmetic64.o:arithmetic64.c:(.text+0xccd): undefined reference to _sqrtl'
sqrtl() is a standard C99 library function, it should be included by -lm.

You could try running make CFLAGS=-ffast-math' to try to get GCC to use the built-in version of sqrtl() instead of the library version.

Otherwise it is probably safe to replace each occurance of sqrtl' with sqrt' in bsgs.c and arithmetic64.c provided none of your sequences k*b^n+c have k or |c| greater than 2^52.

edit: BTW it would be a good idea to add -Wall to the CFLAGS too. Run make CFLAGS=-Wall' or make CFLAGS="-Wall -ffast-math"' to do this.

Last fiddled with by geoff on 2007-03-12 at 03:42