Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obj): error LNK2038: Mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' mismatch value 'MDd_DynamicDebug' (in Car.obj) #2341

Open
RIKDXHQ11 opened this issue Jun 12, 2024 · 1 comment
Labels
question Further progress depends on answer from issue creator.

Comments

@RIKDXHQ11
Copy link

RIKDXHQ11 commented Jun 12, 2024

Obj): error LNK2038: Mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' mismatch value 'MDd_DynamicDebug' (in Car.obj)

In the process of using these DLLs, I found that:
\Lib \ shaderc_shared.lib
\Lib \ spirv cross core lib
\Lib \ spirv cross glsl.lib
and
\Lib \ shaderc_sharedd.lib
\Lib \ spirv cross cored.lib
\Lib \ spirv cross glsld.lib
They are all the same, they are all MD-DynamicRelease
I want to use the debug version of the DLL because they can be used together with other debug commands.

@HansKristian-Work HansKristian-Work added the question Further progress depends on answer from issue creator. label Jun 17, 2024
@HansKristian-Work
Copy link
Contributor

HansKristian-Work commented Jun 17, 2024

This looks like a typical MSVC bug if you load a CMake project directly in the IDE instead of generating an msbuild.
Try adding this to your CMakeLists.txt before calling project(). I've had success with that before. I don't think this is an SPIRV-Cross per-se.

if (POLICY CMP0091)
	cmake_policy(SET CMP0091 NEW)
endif()
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further progress depends on answer from issue creator.
Projects
None yet
Development

No branches or pull requests

2 participants