Forum Discussion
Altera_Forum
Honored Contributor
19 years agoLwip basic question
Hi all, I'm starting with lwip, but have some problems with functions calling. I`m trying to create a simple UDP connection, the code is as follows: #include <stdio.h># include "lwip...
Altera_Forum
Honored Contributor
16 years agoHi,
First of all, I have to make decision between InterNiche Stack and LwIP stack. I am using opencores ethernet mac which is tested with InterNiche stack, but i don't know how to make that. LwIP stack is formerly used in my company but for an old project that used different MAC, NIOS, IDE.... After I add the path to the include path in build project properties (even if i already add it in include path & symbols), I have errors : --- Quote Start --- Severity and Description Path Resource Location Creation Time Id D:/essai_ethernet/IP/lwip/src/include/lwip/api.h error: syntax error before '}' token essai_ethernet line 159 1253277801181 32122 --- Quote End --- When I double-click on this error, it doesn't lead me to the error location, I have to manually edit file and go to the error line. "go to error location" works well with opencores ethernet files (component in fpga and then in system library). I suspect bad syntax handler with some C keywords like struct, typedef, enum.... I say that because I had experienced troubles with typedef keyword. If it is too hard to implemant LwIP, I will have a look at InterNiche. Maybe those include problems is related to your first post : undefined reference to netconn_new() OR NETCONN_UDP is badly defined (exists in api.h ;-))