Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

Lwip 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/api.h"
int main()
{
  struct netconn *conn;
  conn = netconn_new(NETCONN_UDP);
    
}  

But seems like I&#39;m doing something wrong, because it&#39;s giving me this error:

" undefined reference to `netconn_new&#39; "

I&#39;ve tryied with all the connection types with the same result, and seems like they are all defined in "lwip/api.h". Don&#39;t know what I&#39;m doing wrong, can someone help me???

Thanks!!!!!

15 Replies