Code: Select all
undefined reference to `btDefaultCollisionConfiguration::~btDefaultCollisionConfiguration()'
Code: Select all
-I/usr/local/include/bullet -L/usr/local/lib -lbulletdynamics -lbulletcollision -lbulletmath
Thanks in advance.
Code: Select all
undefined reference to `btDefaultCollisionConfiguration::~btDefaultCollisionConfiguration()'
Code: Select all
-I/usr/local/include/bullet -L/usr/local/lib -lbulletdynamics -lbulletcollision -lbulletmath
What other errors, except for btDefaultCollisionConfiguration?I get errors like this one
Code: Select all
g++ -Wall -g -DOGRE_GUI_GLX -DOGRE_CONFIG_LITTLE_ENDIAN -I/usr/local/include/bullet -I/usr/local/include/OIS -I/usr/local/include -I/usr/include/CEGUI -I/usr/include/OGRE -L/usr/local/lib -lbulletdynamics -lbulletcollision -lbulletmath -lCEGUIOgreRenderer -lCEGUIBase -lOgreMain -lOIS -o executable_name all_object_files
Code: Select all
#include <btBulletDynamicsCommon.h>
#include <iostream>
int main () {
std::cout << "Hello World!" << std::endl;
// Build the broadphase
int maxProxies = 1024;
btVector3 worldAabbMin(-10000,-10000,-10000);
btVector3 worldAabbMax(10000,10000,10000);
btAxisSweep3* broadphase = new btAxisSweep3(worldAabbMin,worldAabbMax,maxProxies);
// Set up the collision configuration and dispatcher
btDefaultCollisionConfiguration* collisionConfiguration = new btDefaultCollisionConfiguration();
btCollisionDispatcher* dispatcher = new btCollisionDispatcher(collisionConfiguration);
// The actual physics solver
btSequentialImpulseConstraintSolver* solver = new btSequentialImpulseConstraintSolver;
// The world.
btDiscreteDynamicsWorld* dynamicsWorld = new btDiscreteDynamicsWorld(dispatcher,broadphase,solver,collisionConfiguration);
// Do_everything_else_here
// Clean up behind ourselves like good little programmers
delete dynamicsWorld;
delete solver;
delete dispatcher;
delete collisionConfiguration;
delete broadphase;
return 0;
}
Code: Select all
$ g++ -I/usr/local/include/bullet -L/home/jonan/Escritorio/bullet-2.72/out/linuxx86/optimize/libs -lbulletdynamics -lbulletcollision -lbulletmath main.cpp -o bullet
/tmp/ccxHcss7.o: In function `main':
main.cpp:(.text+0x268): undefined reference to `btAxisSweep3::btAxisSweep3(btVector3 const&, btVector3 const&, unsigned short, btOverlappingPairCache*)'
main.cpp:(.text+0x2a3): undefined reference to `btDefaultCollisionConfiguration::btDefaultCollisionConfiguration(btDefaultCollisionConstructionInfo const&)'
main.cpp:(.text+0x303): undefined reference to `btCollisionDispatcher::btCollisionDispatcher(btCollisionConfiguration*)'
main.cpp:(.text+0x356): undefined reference to `btSequentialImpulseConstraintSolver::btSequentialImpulseConstraintSolver()'
main.cpp:(.text+0x3c2): undefined reference to `btDiscreteDynamicsWorld::btDiscreteDynamicsWorld(btDispatcher*, btBroadphaseInterface*, btConstraintSolver*, btCollisionConfiguration*)'