formal parameter won't be aligned problems

haba
Posts: 21
Joined: Sun Oct 12, 2008 3:38 pm

formal parameter won't be aligned problems

Post by haba »

Hey,

Just updated my project to use version 2.73 of bullet, but now I'm getting a bunch of errors, such as:

Code: Select all

error C2719: 'scaling': formal parameter with __declspec(align('16')) won't be aligned
in this line:

Code: Select all

btCollisionShape *getCollisionShape(string shapeStr, Model *model, btVector3 scaling);
I could just pass that scaling by address and the errors would go away, but it's a real inconvenience because I'm developing in both XCode (mac) and VS, and XCode doesn't complain about the alignment, but complains when I have the &scaling...

Any ideas?

Thanks!