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: 
Highlighted
Visitor forthesujeet
Visitor
2,751 Views
Registered: ‎03-23-2008

a lwip error

Hi all,

         can any one rectify the error which is coming in my program

 

  error: lwip/udp.h: No such file or directory    main.c    proj1    line 8    November 12, 2010 12:35:03 PM    30
  error: lwip/api.h: No such file or directory    main.c    proj1    line 9    November 12, 2010 12:35:03 PM    31

 

 

my code is very simple

 

#include "lwip/udp.h"
#include "lwip/api.h"
int main()
{
struct netconn *conn;
struct netbuf *buf;
struct ip_addr addr;
char *data;
char string[] = "Sujeet is here";
int i;

conn = netconn_new(NETCONN_UDP);

addr.addr = htonl(0x7f000001);

netconn_connect(conn, &addr, 1050);

buf = netbuf_new();
data = netbuf_alloc(buf, 10);


for(i = 0; i < 10; i++)
data[i] = i;

netconn_send(conn, buf);

netbuf_ref(buf, string, sizeof(string));

netconn_send(conn, buf);

netconn_delete(conn);
netconn_delete(buf);
}

0 Kudos
2 Replies
Moderator
Moderator
2,747 Views
Registered: ‎08-25-2009

Re: a lwip error

Is the SW compiled in XPS or SDK? Did you add -llwip4 to the compiler?

"Don't forget to reply, kudo and accept as solution."
0 Kudos
Explorer
Explorer
2,731 Views
Registered: ‎04-09-2008

Re: a lwip error

If you are using SDK, did you configure the board support package (BSP) to include lwIP?  Right-click the BSP your project references.  Select "Board Support Package Settings."  Check the box "lwip130".  Click OK and it will rebuild.

0 Kudos