If you try to call LOCK_TCPIP_CORE in pico_lwip/include/arch/cc.h, it won't link if you're calling it in C++ code. This is because the functions pico_lwip_custom_lock_tcpip_core and pico_lwip_custom_unlock_tcpip_core are not surrounded by the extern "C" directive and thus get declared with the wrong linkage.
If you try to call LOCK_TCPIP_CORE in
pico_lwip/include/arch/cc.h
, it won't link if you're calling it in C++ code. This is because the functionspico_lwip_custom_lock_tcpip_core
andpico_lwip_custom_unlock_tcpip_core
are not surrounded by theextern "C"
directive and thus get declared with the wrong linkage.