Compile error on Android with #include <new>

Post Reply
User avatar
SynapticBytes
Posts: 74
Joined: Thu Feb 10, 2011 8:27 pm

Compile error on Android with #include <new>

Post by SynapticBytes »

I was compiling 12 months ago for android fine, but have updated to the latest tools, and now getting compile errors wherever "#include <new>" is being used in teh bullet headers, such as btAlignedObectArray

Code: Select all

#define BT_USE_PLACEMENT_NEW 1
....

#ifdef BT_USE_PLACEMENT_NEW
#include <new> //for placement new
#endif //BT_USE_PLACEMENT_NEW
Can anyone explain this, whether I can take out the define safely, or how to get the include compiling OK?

Thanks.

*edit* Figured it out. it turns out you now need to have the include path to the stl libs added as compiler flags.
Post Reply