Altera_Forum
Honored Contributor
16 years agoError by compiling Superloop SimpleSocketServer
I patched the simple socket server into a superloop application under 9.0SP2. "building_3c120_superloop_simple_socket_server_plu s.pdf". The patch finished successfully http://www.alteraforum.com/images/smilies/smile.gif :)
In NIOS-IDE i started a new project and edited the system.stf. If i build the project than i get the following errors:http://www.alteraforum.com/images/smilies/confused.gif The Simple Socket Server example requires the NicheStack TCP/IP Stack Software Component. But the NicheStack is added, just ALT_INICHE is not defined. If i comment this lines then, or i define ALT_INICHE then i get the following errors: :mad: ../network_utilities.c:22:28: alt_iniche_dev.h: No such file or directory ../network_utilities.c:24:20: ipport.h: No such file or directory ../network_utilities.c:25:21: tcpport.h: No such file or directory ../network_utilities.c:70: error: syntax error before "net" ../network_utilities.c: In function `get_mac_addr': ../network_utilities.c:72: error: `mac_addr' undeclared (first use in this function) ../network_utilities.c:72: error: (Each undeclared identifier is reported only once ../network_utilities.c:72: error: for each function it appears in.) ../network_utilities.c: At top level: ../network_utilities.c:87: error: syntax error before '*' token ../network_utilities.c: In function `get_ip_addr': ../network_utilities.c:95: warning: implicit declaration of function `strcmp' ../network_utilities.c:95: error: `p_dev' undeclared (first use in this function) ../network_utilities.c:95: error: syntax error before "INICHE_DEFAULT_IF" ../network_utilities.c:109: error: `ipaddr' undeclared (first use in this function) ../network_utilities.c:109: warning: implicit declaration of function `htonl' ../network_utilities.c:110: error: `gw' undeclared (first use in this function) ../network_utilities.c:111: error: `netmask' undeclared (first use in this function) ../network_utilities.c:112: error: `use_dhcp' undeclared (first use in this function) I can not find the header-files ipport.h, alt_iniche_dev.h and tcpport.h. What is wrong? Great thanks if anybody can help me!