Compile error on Android with #include <new>
Posted: Thu Feb 27, 2014 7:16 am
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
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.
Code: Select all
#define BT_USE_PLACEMENT_NEW 1
....
#ifdef BT_USE_PLACEMENT_NEW
#include <new> //for placement new
#endif //BT_USE_PLACEMENT_NEWThanks.
*edit* Figured it out. it turns out you now need to have the include path to the stl libs added as compiler flags.