Forum Discussion
Altera_Forum
Honored Contributor
20 years agoAn error during compiling
hi, i'm a freshman in embedded.my target board is cyclone2 ep2c35(with 48k total ram bits on chip,105 M4k memory blocks). the components i added into my design as follows: a processor,on ch...
Altera_Forum
Honored Contributor
20 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- i select "small C library" and "reduced device drivers" options i encounter two questions while compiling 1)i can't use the fopen function,the error msg during compiling: obj/count_binary.o(.text+0x98): In function `main': ../count_binary.c:22: undefined reference to `fopen collect2: ld returned 1 exit status make: *** [count_binary_3.elf] Error 1 Build completed[/b] --- Quote End --- I guess you shouldn't enable small C library property if you want to use 'fopen'. FYI. regards, David