Bullet physics library

Sep 15, 2009 at 9:50pm
I have recently stubled upon Bullet Physics 2.75. I have not been able to compile any of the sample programs that come with it (at www.bulletphysics.com) with my compiler (I use CodeBlocks) and yes, I did tell it were all the include files are. It seems to work just fine with visual studio, but I want to use it portably. If there is any way to fix the cluster of errors or just a better compiler (that I can use portably from my flash drive) let me know.
Sep 15, 2009 at 9:57pm
Static libraries (lib) can only be used with the same compiler that generated them, if I'm not mistaken. If it was generated with VC++, it can only be used with VC++. If it as generated with MinGW, it can only be used with MinGW.
I'm not sure if this applies to C programs, as well.
Sep 15, 2009 at 10:18pm
Well, the readme file said that it works with other compilers and tells me to use CMake to create the project files, but I can't get that to work either so... if someone knows how to use CMake to make project files for CodeBlocks, let me know (CMake says that it can but it doesn't work for me).
Sep 15, 2009 at 11:25pm
Download MSYS and install it. Once you're on the shell, copy the directory (the one that should come in the archive you downloaded) somewhere, move to it then type:
cmake .
(Should take a couple seconds.)
make
Sep 16, 2009 at 10:59pm
If there is a solution to this, please tell me. All of the errors are
Undefined reference to '.........'

This is everything that showes up:


..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x18)||undefined reference to `DemoApplication::updateCamera()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x20)||undefined reference to `DemoApplication::clientResetScene()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x24)||undefined reference to `DemoApplication::setShootBoxShape()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x28)||undefined reference to `DemoApplication::shootBox(btVector3 const&)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x2c)||undefined reference to `DemoApplication::keyboardCallback(unsigned char, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x34)||undefined reference to `GlutDemoApplication::specialKeyboard(int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x3c)||undefined reference to `DemoApplication::reshape(int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x40)||undefined reference to `DemoApplication::mouseFunc(int, int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x44)||undefined reference to `DemoApplication::mouseMotionFunc(int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x48)||undefined reference to `DemoApplication::displayCallback()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x4c)||undefined reference to `DemoApplication::renderme()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x50)||undefined reference to `GlutDemoApplication::swapBuffers()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x54)||undefined reference to `GlutDemoApplication::updateModifierKeys()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV10SoftDemo29[vtable for SoftDemo29]+0x18)||undefined reference to `DemoApplication::updateCamera()'|
..\..\out\release8


and it continues on for a while
Topic archived. No new replies allowed.