From: Justin R. <ju...@ra...> - 2008-02-05 04:06:25
|
I knew to do that but I did not know where to put -lm. I tried a lot of places and finaly adding it to the CC = $(CROSS_COMPILE)gcc -lm line (I think, it is no longer there?) Justin Dave Hylands wrote: > > Hi Justin, > >> I am having the same problem. What exactly do you mean >> >specify the so in the linker >> What exactly should I do? I have never used gcc before. > > Try adding -lm (that's a little L) to link in the math library (which > contains the cos function). > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- View this message in context: http://www.nabble.com/include-math.h-tp15012797p15283159.html Sent from the Gumstix mailing list archive at Nabble.com. |