cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
2,898 Views
Registered: ‎10-01-2009

undeclared variables in socket.h

Hi

 

I am trying to implement webserver socket application. I have created xilkernel platform and added lwip to it.

After that I added sock_apps from available code of webserver to it. 

 

I am getting errors in echo.c file. They are about MACROs like SOCK_STREAM undeclared, IN_ADDRANY  undeclared, socklen_t undeclared, storage size of "address" isn't known. These are members of sockets.h file. These file is included in the beginning as

 

#include "lwip/sockets.h"

 

Still these errrors are coming.

 

What is the solution to make it work.

 

Thank you

 

0 Kudos
1 Reply
Highlighted
2,895 Views
Registered: ‎08-21-2008

Hello.

Double click your software project and in the compiler options go to "Path and Options" tab.

In the "Libraries to link against" have you set the linking libraries for LWIP and Xilkernel. If not then copy and paste...

-llwip4 -lxilkernel 

Best of luck.
--
Unlimited in my Limits.
0 Kudos