UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor
2,819 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
2,816 Views
Registered: ‎08-21-2008

Re: undeclared variables in socket.h

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