Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by yangroot@Oct 7 2005, 09:23 PM #include "system.h"# include "stdio.h" --- Quote End --- Looking at your code, these should be the only include files you need. --- Quote Start --- originally posted by yangroot+oct 7 2005, 09:23 pm--><div class='quotetop'>quote (yangroot @ oct 7 2005, 09:23 pm)</div>
--- quote start ---
../otl350a.c: in function `main':
../otl350a.c:28: warning: unused variable `u_p'
../otl350a.c:28: warning: unused variable `data_r_'
../otl350a.c:30: warning: unused variable `fd0'
../otl350a.c:76:3: warning: no newline at end of file[/b]
--- quote end ---
this looks like it's from something other than what you posted.
<!--quotebegin-yangroot@Oct 7 2005, 09:23 PM linking otl350a.elf...
obj/otl350a.o(.text+0x28): in function `main':
../otl350a.c:49: undefined reference to `fopen'
obj/otl350a.o(.text+0x50):../otl350a.c:52: undefined reference to `fclose' --- Quote End --- I think you're missing a system library. It should show up as "YourProjectName_syslib" in the project list, and it should be set as the system library in your project's properties.