I've been trying to get a simple lwIP app up and running under win32, but I seem to be stuck with a rather mystifying LNK2001 error:
The basis for my code is the official win32 port of lwIP, available here - I managed to compile the necessary libraries (and the test program included within as well). Then I created a new project for my own app and proceeded to adapt its linker configuration to use those libraries, producing the command line below:
1>udptest.obj : error LNK2001: unresolved external symbol "signed char __cdecl ethernetif_init(struct netif *)"[...]
1>udptest.obj : error LNK2001: unresolved external symbol "void __cdecl ethernetif_poll(struct netif *)"[...]
1>udptest.obj : error LNK2001: unresolved external symbol "void __cdecl ethernetif_shutdown(struct netif *)"[...]
However, if I try to reference my routines according to this guide, I get an empty dialog box with no sign of those two libraries whatsoever. It's quite confusing - none of the lwIP function calls trigger a linking error, only those going to the packet interface library (same libpath, btw)... I'd be grateful for any assistance that could fix this weird error.
/OUT:"C:\Users\sh4r3\Documents\Visual Studio 2008\Projects\udptest\Release\udptest.exe"
/INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Users\sh4r3\Documents\Visual Studio 2008\Projects\udptest\\Lib"
/MANIFEST /MANIFESTFILE:"Release\udptest.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'"
/SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /LTCG /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT
lwip.lib pktif.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib