|
From: | arun . mahasenan |
Subject: | [lwip-users] Lwip linker error in Mac |
Date: | Wed, 10 Feb 2021 13:51:02 -0600 |
Hello All, I tried to run the lwip example application in Mac OS with the options as below, but I get a linker error “ip_data” symbol not found. #define LWIP_IPV4 0 #define LWIP_IPV6 1 #define NO_SYS 1 However, if I enable LWIP_IPV4, the undefined symbol error doest appear. Ip_data is defined in ip.c file, and ip.h file is included in ip6.c file. Has anyone come across this issue Undefined symbols for architecture x86_64: "_ip_data", referenced from: _ip6_input in liblwipcore.a(ip6.c.o) _ip6_input_accept in liblwipcore.a(ip6.c.o) _ip6_reass in liblwipcore.a(ip6_frag.c.o) _mld6_input in liblwipcore.a(mld6.c.o) _nd6_input in liblwipcore.a(nd6.c.o) _nd6_send_na in liblwipcore.a(nd6.c.o) _raw_input in liblwipcore.a(raw.c.o) ... ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [contrib/ports/unix/example_app/example_app] Error 1 make[2]: *** [contrib/ports/unix/example_app/CMakeFiles/example_app.dir/all] Error 2 make[1]: *** [contrib/ports/unix/example_app/CMakeFiles/example_app.dir/rule] Error 2 make: *** [example_app] Error 2 Regards Arun |
[Prev in Thread] | Current Thread | [Next in Thread] |