Click here to Skip to main content
15,887,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to correctly build bullet physics with d3d11 to build a c++ Channel-Operator (a dll file like BulletChop ) for TouchDesigner using code::blocks, or Visual Studio.o I...



What i was trying to write was a Chop (Channel operator) inside Touchdesigner, that can only be built with a c++ compiler as the physics component is written in c++, which uses Bullet Physics and d3d11 and get a simple game to work from within Touch Designer; the trouble is i get way too many compiler errors .. so i defaulted to code blocks after coming to a stop with VS2010 –


when i try to Build BulletChop Again .. this is what i see, .
BulletCHOP.h(69): error C2719: 'pos': formal parameter with __declspec(align('16')) won't be aligned


here is the snippet thats responsible for the error ...

C++
void addBody(btVector3 pos, btVector3 rot, btVector3 scale, btScalar mass);
void addPlane(btVector3 pos, btVector3 rot);
Posted
Updated 21-Feb-14 0:11am
v2

1 solution

your compilation settings for the type btVector3 are somehow wrong. Change the declaration of the type and its decoration.


http://msdn.microsoft.com/de-de/library/373ak2y1.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900