imgui.lib(imgui_stdlib.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in osc.obj #1055
-
I succeeded in building the project OSC in Release mode. But I failed to build the project in Debug mode. Errors as follows: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That is a typical issue when building binaries with different debug levels with Visual Studio (specifically, MSVC). The compiler stack requires that all statically-linked code has the same debug level. To fix this, you have to build both OpenSimCreator (the leaf project that you may be opening in Visual Studio etc.) and its dependencies (which you may be building with Where permitted values are dictated by Note: |
Beta Was this translation helpful? Give feedback.
-
Also note: there's a This isn't something that I can fix (it's a separate project). If you desperately want debug-level binaries you can achieve this on platforms that allow for mixed configurations, such as Mac OS or Linux (personally, I use Linux for |
Beta Was this translation helpful? Give feedback.
That is a typical issue when building binaries with different debug levels with Visual Studio (specifically, MSVC). The compiler stack requires that all statically-linked code has the same debug level.
To fix this, you have to build both OpenSimCreator (the leaf project that you may be opening in Visual Studio etc.) and its dependencies (which you may be building with
build_windows.bat
) with the same build configuration. If you're doing this by building all dependencies usingbuild_windows.bat
(rather than, say, manually using CMake). The relevant lines to change are here:https://github.com/ComputationalBiomechanicsLab/opensim-creator/blob/main/scripts/build_windows.bat#L11
Where permitt…