[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
math lib inclusion
- Date: Fri, 7 Nov 2008 15:46:44 -0000
- From: N.Mayes at sstl.co.uk (Neil Mayes)
- Subject: math lib inclusion
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