math lib inclusion
Neil Mayes
N.Mayes at sstl.co.uk
Fri Nov 7 15:46:44 UTC 2008
Hi all,
I am trying to get an application running that uses math.h. I understand
I need to supply the math lib which is achieved by adding '-lm' to the
library list.
I am using RTEMS4.8.0 and gcc4.2.2 for the sparc (ERC32). I have based
my application make file from an RTEMS example where there is the line:
# Libraries
LIBS = -lrtemsall -lc
include $(RTEMS_MAKEFILE_PATH)/Makefile.inc
.
.
Should I just be able to add -lm to LIBS?
Do I have to build the math library seperately from gcc and newlib for
the sparc?
Thanks,
Neil Mayes
More information about the users
mailing list