Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHi,
I changed the Nios-ide std parameter to have CFLAGS=-std=gnu99 in the make file. it was a good solution because the number of errors has decreased significally but i still have some errors: --- Quote Start --- Linking hello_world_8.elf... obj/configfile.o(.text+0x10): In function `JMHelpExit': ../configfile.c:93: undefined reference to `stderr' obj/configfile.o(.text+0x10):../configfile.c:93: Unable to reach stderr (at 0x00000000) from the global pointer (at 0x0017e198) because the offset (-1565080) is out of the allowed range, -32678 to 32767. collect2: ld returned 1 exit status make: *** [hello_world_8.elf] Error 1 Build completed in 4.475 seconds --- Quote End --- it looks like that the compiler does'nt know stderr depite that the <stdio.h> was included. I don't have a clue !!! but i wanted to join the makefile of linux were the code executed correctly and the current makefile of the nios2-ide . please help me to identify the possible source of error that could be in this makefile. thank you :)