Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

problem with math.h 's function in Eclipse

$
0
0
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

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>