[Windows Ninja Clang/LLVM] Failed to load GetEngineFactoryXXX function from GraphicsEngineXXX_64d.dll library
Platform: Windows 11
The whole project is basically the same as Samples/GLFWDemo, but linked to DiligentEngine using add_subdirectory.
A: Using Ninja + Clang/LLVM toolchain:
- Vulkan: Successfully built. Failed to run:
- Failed to load
GetEngineFactoryVkfunction fromGraphicsEngineVk_64d.dlllibrary - at
IEngineFactoryVk* pFactoryVk = LoadAndGetEngineFactoryVk();
- Failed to load
- OpenGL: Successfully built. Failed to run:
- Failed to load
GetEngineFactoryOpenGLfunction fromGraphicsEngineOpenGL_64d.dlllibrary - at
IEngineFactoryOpenGL* pFactoryOpenGL = LoadAndGetEngineFactoryOpenGL();
- Failed to load
- DX11/DX12: Successfully built. Runs well.
B: Using Visual Studio 17 2022 + MSVC:
- All: Successfully built. Runs well.
Copy GraphicsEngineXXX_64d.dll from B into A: Runs well.
So the problem is that when building with clang, DX11/DX12 works well, but Vulkan/OpenGL fails to get the GetEngineFactory* function from the DLL?
This is strange, all factories are implemented identically in all backends.
So the problem is that when building with clang, DX11/DX12 works well, but Vulkan/OpenGL fails to get the
GetEngineFactory*function from the DLL? This is strange, all factories are implemented identically in all backends.
Yes? I'm new to C++. So I don't know much about what's going on. I just tried these setups. If additional information is needed, please let me know.