DanielChappuis / reactphysics3d

Open source C++ physics engine library in 3D
http://www.reactphysics3d.com
zlib License
1.52k stars 219 forks source link

Calling glfwCreateWindow will give an Assertion fail at Quaternion.h #146

Closed loopahnoob closed 4 years ago

loopahnoob commented 4 years ago

test.cpp.txt

Remove the ".txt".

Error:

Assertion failed!

Program: C:\Users___\Desktop\Others\cpp\OpenGL\GLFW\GE\text.exe File: C:/Users/___/Desktop/C++/reactphysics3d-0.7.1/src/mathematics/Quaternion.h, Line 266

Expression: lengthQuaternion > MACHINE_EPSILON

I don't know if this is related or not but C++/reactphysics3d-0.7.1 was already deleted. G++ might still be using that header instead of the same header in the MinGW include directory.

DanielChappuis commented 4 years ago

Can I ask you to post the whole stack trace when the assert occurs ?

loopahnoob commented 4 years ago

Wait, I'm sorry. This error was entirely related to the g++ error I had when running the program, reinstalling MinGW made the program work.

Sorry to waste your time.

DanielChappuis commented 4 years ago

Ok I am glad to you have solved your issue.