Problems with C-Code in Eclipse for NIOS II
Hi ,
i wrote a program for a test in C++ on my PC in Eclipse. I thought : if i change it into C Nios will have it easier. So I translated it into C. I Thought copy and pasting it would be enough. Then i discovered NIOS 2 Eclipse hat some difficulties with my Code. It wasnt able to include conio.h , math.h and so on. I thought ok.. Even if the Error is not written explicit there , i will change those functions to own written ones . It worked But other Error with no description appeared. It was jsut a global 2 D Array which i had to put into my main. I passed the pointer to all my functions . Then it compiled with no Error. I thought , ok, now the output on screen must be correct. But it wasnt. I also copied it back into my Eclipse on my PC. There it worked fine. I discovered , that my Program on NIOS Eclipse does 3 functions in the main and then jumps back xD. It was a deep shock for me.
Maybe you can tell me what is going on here .
Thank you for any advice :D
It may has something to do with the compiler or the BSP package.
Ah yeah fopen also didnt work. Even if i activeted something in the BSP ( maybe i need to do it different)
:D
A a nice time !