Open
Description
First off, building MicroPython with MSVC and the ports/windows/micropython.vcxproj
was exceptionally easy. Good job!
But when trying to add support for LwIP with:
-DMICROPY_PY_LWIP=1
-DMICROPY_ENABLE_SCHEDULER=1
- Add
extmod/modlwip.c
andlib/netutils/netutils.c
.
And trying to figure out where to add that in the .vcxproj
files was not so easy. So I hacked up my own GNU-makefile.
And then getting to the link stage, I got this error:
lwip32.lib(sys_arch.obj) : error LNK2005: _sys_arch_protect already defined in MicroPython.lib(modlwip.obj)
lwip32.lib(sys_arch.obj) : error LNK2005: _sys_arch_unprotect already defined in MicroPython.lib(modlwip.obj)
Is there another define that should be set to avoid this? Adding -DNO_SYS=1
did not help.
Or are we supposed to link with a dynamic LwIP import-library? Since that works.