GithubHelp home page GithubHelp logo

Comments (3)

jrouwe avatar jrouwe commented on July 22, 2024

I've not seen this error before and e.g. JPH::ConvexShape::RestoreBinaryState is a regular function that doesn't depend on any preprocessor macro. The only thing I can say with the information given is that most likely you have a mismatch in compiler/linker options between the lib and your own project. E.g. maybe you're compiling Jolt as a shared lib and linking it as a regular lib?

from joltphysics.

Mahmoud1205 avatar Mahmoud1205 commented on July 22, 2024

I didn't change any of the options while compiling, I'm using Visual Studio 2022,
I'm linking it by adding the directory its (Jolt.lib) in to the Library Directories property in VS22 since I thought that was enough. But now that I added "Jolt.lib" to Properties > Linker > Input > Additional Dependencies theres new errors, theyre all just "mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MD_DynamicRelease' in glm.obj" repeated dozens of time, and the file doing it is Jolt.lib. Can I not use GLM alongside Jolt?
And there are dozens of "unresolved external symbol _CrtDbgReport" and some other stuff, all coming from Jolt.lib...
Also, compiling and running the samples in the Jolt solution works fine, so the issue is with my project setup.

from joltphysics.

jrouwe avatar jrouwe commented on July 22, 2024

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.

from joltphysics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.