Altera_Forum
Honored Contributor
12 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. My problem is that I didn't succeed in using the library math.h I wrote the following simple code : # include <stdio.h># include <math.h> int main() { double result =5; result = floor(result); return 0; } And I obtain the error : undefined reference to `floor' main.c /testnios line 24 C/C++ Problem Do you have any idea about my problem or what I did wrong ? thank you