Any reason
cc -g -lm -DBLITZ_HOST_IS_LITTLE_ENDIAN
would produce an error with code using math.h? Is it possible there’s a difference between GCC version 4.0.3 (documented working version) and version 4.6.3 (my current version)?
makefile and asm.c @ https://gist.github.com/3801291
This is on ubuntu 12.04
My terminal output is a comment in the gist.
Instead of
Try:
When the linker searches a library, it links in modules that contain definitions for previously-undefined symbols.
If the linker searches
-lmbeforefoo.o, thenpow()is not yet undefined. Conversely, iffoo.ocomes first, it undefinespow(), which-lmcan then resolve.EDIT: To accomplish this advice in your makefile, make these changes: