Forum Discussion
Altera_Forum
Honored Contributor
13 years agoundefined reference to `fopen'
Hi Everyone, I have a probelm with using Nios II Build for Eclipse... I wrote a small C program trying to read from a file, and I get an error "C:\altera\mysopc_nios_sram\software\my...
Altera_Forum
Honored Contributor
13 years agoI solved the problem... Here is what I did:
1) I right clicked on my project and choose Nios II --> BSP Editor 2) on the left hand side options where it says "settings" I chose Settings --> Common --> hal --> enable_small_c_library 3) I unchecked "hal.enable_small_c_library" I rebuild the project and it compiled fine :) Thank you all for your help....