Altera_Forum
Honored Contributor
17 years agouart file point
#include "system.h"# include <string.h>
# include "altera_avalon_jtag_uart.h"# include "altera_avalon_jtag_uart_fd.h"# include "altera_avalon_jtag_uart_regs.h"# include <stdio.h> int main(void) { char *mag="hebei"; FILE *fp; fp=fopen("/dev/jtag_uart","w"); if(fp) { fprintf(fp,"%s\n",mag); fclose(fp); } return 0; } error : in funtion 'mian' undefined reference to 'fclose' undefined reference to 'fopen' I donnot kown if or not some liberary is not added,so those errors generate , I have tried compiling nots of time ,the errors also show, I hope somebody can help me ,thanks!