KingOfDaAwesome / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

[VS2012] DirectXMath.h clashes with btScalar.h #710

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. define BT_USE_SSE_IN_API in btScalar.h
2. include DirectXMath.h and btBulletCollisionCommon.h (in that order) in your 
program

What is the expected output? What do you see instead?
Compiler throws errors about because operator*(__m128, __m128) is 
declared/defined twice (in btScalar.h and DirectXMath.h)

What version of the product are you using? On what operating system?
revision 2640

Possible solution:
Replace operators with _mm_mul_ps (and other) with intrinsic functions.

Original issue reported on code.google.com by kabazao...@gmail.com on 25 Apr 2013 at 7:03

GoogleCodeExporter commented 8 years ago
I'll look into this, we should fix this indeed.

THanks for the report.

Original comment by erwin.coumans on 8 May 2013 at 9:08

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r2659.

Original comment by erwin.coumans on 11 Sep 2013 at 12:01

GoogleCodeExporter commented 8 years ago
Just add #define BT_NO_SIMD_OPERATOR_OVERLOADS before including any of the 
Bullet headers, if another header already defines them.

Original comment by erwin.coumans on 11 Sep 2013 at 12:03