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

Exactly one of NDEBUG and _DEBUG needs to be defined! [new to C++][Implementing SDK into project] #301

Open
MrMechanical opened this issue May 25, 2020 · 3 comments

Comments

@MrMechanical
Copy link

I'm not sure if this is the right place to post this. I am struggling with this error in my custom C++ game engine's implementation's of Physx4.1 SDK. Do I Just define NDEBUG or am I doing something wrong? I apologize for my inexperience, I am very much a beginner when it comes to implementing libraries.

Thank you so much for the help, I am extremely grateful.

@AlesBorovicka
Copy link

Check your configuration pre-processor defines, there should be just one of the defines. In your project where you include physx headers, you should have one of those defines.

@Woking-34
Copy link

If you are using CMake try explicitly declaring your build type, like:
cmake .. -DCMAKE_BUILD_TYPE=Debug "-GUnix Makefiles"

@mattearly
Copy link

I had to add it to the Preprocessor Definitions in Visual Studio when in Release Mode. There may be a better way, but I could not find any other half-decent solution.
asdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants