Forum Discussion
Altera_Forum
Honored Contributor
13 years agoproblem with math.h 's function in Eclipse
hello, I made a system with Qsys which just contain a Nios II processor and its On-chip-memory. then , I use the .sopcinfo File generated by Qsys to create a nios II application with Eclipse....
Altera_Forum
Honored Contributor
13 years agoGotta link it against the library libm... "-lm" needs to be added at the tail end of your compilation command. This is not specific to Nios II. It wouldn't work with any GCC compiler without linking against libm.