Unresolved external error when adding HelloWorld code to project #1116
-
Here are the first 3 errors: I'm using the Debug config and I have JPH_ENABLE_ASSERTS and JPH_DEBUG_RENDERER defined in the preprocessor, and Jolt.lib is in the linker inputs. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I've not seen this error before and e.g. |
Beta Was this translation helpful? Give feedback.
-
I didn't change any of the options while compiling, I'm using Visual Studio 2022, |
Beta Was this translation helpful? Give feedback.
-
As the error says: You're mixing runtime libraries. Jolt by default uses statically linked runtime libraries, to switch to dynamic (which your project appears to be using) set the USE_STATIC_MSVC_RUNTIME_LIBRARY cmake option while compiling Jolt to OFF. |
Beta Was this translation helpful? Give feedback.
As the error says: You're mixing runtime libraries. Jolt by default uses statically linked runtime libraries, to switch to dynamic (which your project appears to be using) set the USE_STATIC_MSVC_RUNTIME_LIBRARY cmake option while compiling Jolt to OFF.