DanielChappuis / reactphysics3d

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

Implementation in header files #67

Closed lucaheft closed 6 years ago

lucaheft commented 6 years ago

Hey i just fiddled around with your library and its a really nice piece of software you created.

I have a problem including the reactphysics3d.h file into my headers though, i get a lot of errors when doing this. I guess this happens because the header files also contain implementations. Correct me if im wrong i just started with c++ again. When i include reactphysics3d.h in my cpp file it works as expected.

Also is there a reason why the header files contain implementation and this is not split into the cpp files?

DanielChappuis commented 6 years ago

The headers only contain definitions for the inline functions which is totally fine.

What kind of compilation errors do you have when you include the reactphysics3d.h header in your headers ?

lucaheft commented 6 years ago

Okey i just created a new clean project and it works there. No idea why it doesnt in my other project. These are the errors i get, but they are basically meaningless. At least for me: https://i.imgur.com/FOR2sFP.png

Sorry for the inconveniences, absolutely my bad :/

DanielChappuis commented 6 years ago

I am glad that you managed to solve your issue. Best regards