Hi, can any body explain to me does the nios_gnupro support any functions that manage files or other input/output streams??? I am currently using the Altera Nios Developed Board during my research which is Apex Device (EP20K200EFC484-2x). But i failed to execute a very simple program which just consist of fopen and fclose as follows:
#include
main() { FILE *a; a = fopen("simple.dat", "w"); fclose(a); return 0; }
i have compile this program using Visual Studio, and the output is correct. But once i execute the nios-build in the Nios SDK shell, it keep giving me the following errors:
in function `_open_r': openr.o(.text+0x14): undefined reference to `_open' openr.o(.text+0x16): undefined reference to `_open' openr.o(.text+0x18): undefined reference to `_open' openr.o(.text+0x1a): undefined reference to `_open'
Can anybody explain to me where is my problem? Thanks a lot and wish you all have a nice day.