When trying to use Bullet with another library (which nowhere overloads new), I get many many errors. Some selected ones are below:
Code: Select all
//...
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\bullet-2.81-rev2613\src\linearmath\btvector3.h(82): error C2802: static member 'operator new' has no formal parameters
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\bullet-2.81-rev2613\src\linearmath\btvector3.h(82): error C2333: 'btVector3::operator new' : error in function declaration; skipping function body
//...
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\bullet-2.81-rev2613\src\linearmath\btvector3.h(82): error C2556: 'void *(__cdecl *btVector3::operator new(void))(size_t,void *)' : overloaded function differs only by return type from 'void *(__cdecl *btVector3::operator new(void))(size_t)'
1> c:\program files (x86)\microsoft sdks\windows\v7.0a\bullet-2.81-rev2613\src\linearmath\btvector3.h(82) : see declaration of 'btVector3::operator new'
//...
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\bullet-2.81-rev2613\src\linearmath\btvector3.h(82): error C2556: 'btVector3 operator delete(void *,void *)' : overloaded function differs only by return type from 'void operator delete(void *,void *) throw()'
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\new(60) : see declaration of 'operator delete'
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\bullet-2.81-rev2613\src\linearmath\btvector3.h(82): error C2371: 'operator delete' : redefinition; different basic types
1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\new(60) : see declaration of 'operator delete'
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\bullet-2.81-rev2613\src\linearmath\btvector3.h(82): error C2433: 'new' : '__forceinline' not permitted on data declarations
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\bullet-2.81-rev2613\src\linearmath\btvector3.h(82): error C2365: 'operator new' : redefinition; previous definition was 'function'
//...
-G