Godot Version
4.4
Question
Hi, I’m trying to setup visual studio 2022 to compile gdextensions. I’ve cloned godot-cpp (4.4) and compiled it with scons using “scons platform=windows”.
It created lib: libgodot-cpp.windows.template_debug.x86_64.lib
When I try to compile my project (64x debug) with this lib I get:
(error_macros.windows.template_debug.x86_64.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in gdexample.obj
(error_macros.windows.template_debug.x86_64.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MT_StaticRelease’ doesn’t match value ‘MTd_StaticDebug’ in gdexample.obj
(memory.windows.template_debug.x86_64.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in gdexample.obj
(memory.windows.template_debug.x86_64.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MT_StaticRelease’ doesn’t match value ‘MTd_StaticDebug’ in gdexample.obj
(string.windows.template_debug.x86_64.obj) : error LNK2038: mismatch detected for ‘_ITERATOR_DEBUG_LEVEL’: value ‘0’ doesn’t match value ‘2’ in gdexample.obj
(string.windows.template_debug.x86_64.obj) : error LNK2038: mismatch detected for ‘RuntimeLibrary’: value ‘MT_StaticRelease’ doesn’t match value ‘MTd_StaticDebug’ in gdexample.obj