Problem Building with Code::Blocks on Vista

Kukanani
Posts: 25
Joined: Sat Feb 21, 2009 5:08 am

Problem Building with Code::Blocks on Vista

Post by Kukanani »

Hi all,

I downloaded bullet-2.74-beta1 today, and tried to open and build the MSVC 8 Workspace files in Code::Blocks. All of the "lib" projects compile fine, but when I try to build any of the "app" projects, I get link errors.

For example, here is my build output for appAllBulletDemos Release Win32:

Code: Select all

||=== appAllBulletDemos, Release Win32 ===|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x14)||undefined reference to `DemoApplication::updateCamera()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x1c)||undefined reference to `DemoApplication::clientResetScene()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x20)||undefined reference to `DemoApplication::setShootBoxShape()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x24)||undefined reference to `DemoApplication::keyboardCallback(unsigned char, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x28)||undefined reference to `DemoApplication::specialKeyboard(int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x2c)||undefined reference to `DemoApplication::specialKeyboardUp(int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x30)||undefined reference to `DemoApplication::reshape(int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x34)||undefined reference to `DemoApplication::mouseFunc(int, int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x38)||undefined reference to `DemoApplication::mouseMotionFunc(int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x3c)||undefined reference to `DemoApplication::displayCallback()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV16btEmptyDebugDemo[vtable for btEmptyDebugDemo]+0x40)||undefined reference to `DemoApplication::renderme()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo7[vtable for BenchmarkDemo7]+0x14)||undefined reference to `DemoApplication::updateCamera()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo7[vtable for BenchmarkDemo7]+0x1c)||undefined reference to `DemoApplication::clientResetScene()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo7[vtable for BenchmarkDemo7]+0x20)||undefined reference to `DemoApplication::setShootBoxShape()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo7[vtable for BenchmarkDemo7]+0x24)||undefined reference to `DemoApplication::keyboardCallback(unsigned char, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo7[vtable for BenchmarkDemo7]+0x28)||undefined reference to `DemoApplication::specialKeyboard(int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo7[vtable for BenchmarkDemo7]+0x2c)||undefined reference to `DemoApplication::specialKeyboardUp(int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo7[vtable for BenchmarkDemo7]+0x30)||undefined reference to `DemoApplication::reshape(int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo7[vtable for BenchmarkDemo7]+0x34)||undefined reference to `DemoApplication::mouseFunc(int, int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo7[vtable for BenchmarkDemo7]+0x38)||undefined reference to `DemoApplication::mouseMotionFunc(int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo7[vtable for BenchmarkDemo7]+0x40)||undefined reference to `DemoApplication::renderme()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo6[vtable for BenchmarkDemo6]+0x14)||undefined reference to `DemoApplication::updateCamera()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo6[vtable for BenchmarkDemo6]+0x1c)||undefined reference to `DemoApplication::clientResetScene()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo6[vtable for BenchmarkDemo6]+0x20)||undefined reference to `DemoApplication::setShootBoxShape()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo6[vtable for BenchmarkDemo6]+0x24)||undefined reference to `DemoApplication::keyboardCallback(unsigned char, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo6[vtable for BenchmarkDemo6]+0x28)||undefined reference to `DemoApplication::specialKeyboard(int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo6[vtable for BenchmarkDemo6]+0x2c)||undefined reference to `DemoApplication::specialKeyboardUp(int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo6[vtable for BenchmarkDemo6]+0x30)||undefined reference to `DemoApplication::reshape(int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo6[vtable for BenchmarkDemo6]+0x34)||undefined reference to `DemoApplication::mouseFunc(int, int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo6[vtable for BenchmarkDemo6]+0x38)||undefined reference to `DemoApplication::mouseMotionFunc(int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo6[vtable for BenchmarkDemo6]+0x40)||undefined reference to `DemoApplication::renderme()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo5[vtable for BenchmarkDemo5]+0x14)||undefined reference to `DemoApplication::updateCamera()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo5[vtable for BenchmarkDemo5]+0x1c)||undefined reference to `DemoApplication::clientResetScene()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo5[vtable for BenchmarkDemo5]+0x20)||undefined reference to `DemoApplication::setShootBoxShape()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo5[vtable for BenchmarkDemo5]+0x24)||undefined reference to `DemoApplication::keyboardCallback(unsigned char, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo5[vtable for BenchmarkDemo5]+0x28)||undefined reference to `DemoApplication::specialKeyboard(int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo5[vtable for BenchmarkDemo5]+0x2c)||undefined reference to `DemoApplication::specialKeyboardUp(int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo5[vtable for BenchmarkDemo5]+0x30)||undefined reference to `DemoApplication::reshape(int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo5[vtable for BenchmarkDemo5]+0x34)||undefined reference to `DemoApplication::mouseFunc(int, int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo5[vtable for BenchmarkDemo5]+0x38)||undefined reference to `DemoApplication::mouseMotionFunc(int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo5[vtable for BenchmarkDemo5]+0x40)||undefined reference to `DemoApplication::renderme()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo4[vtable for BenchmarkDemo4]+0x14)||undefined reference to `DemoApplication::updateCamera()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo4[vtable for BenchmarkDemo4]+0x1c)||undefined reference to `DemoApplication::clientResetScene()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo4[vtable for BenchmarkDemo4]+0x20)||undefined reference to `DemoApplication::setShootBoxShape()'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo4[vtable for BenchmarkDemo4]+0x24)||undefined reference to `DemoApplication::keyboardCallback(unsigned char, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo4[vtable for BenchmarkDemo4]+0x28)||undefined reference to `DemoApplication::specialKeyboard(int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo4[vtable for BenchmarkDemo4]+0x2c)||undefined reference to `DemoApplication::specialKeyboardUp(int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo4[vtable for BenchmarkDemo4]+0x30)||undefined reference to `DemoApplication::reshape(int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo4[vtable for BenchmarkDemo4]+0x34)||undefined reference to `DemoApplication::mouseFunc(int, int, int, int)'|
..\..\out\release8\build\appAllBulletDemos\Demos\AllBulletDemos\DemoEntries.o:DemoEntries.cpp:(.rdata$_ZTV14BenchmarkDemo4[vtable for BenchmarkDemo4]+0x38)||undefined reference to `DemoApplication::mouseMotionFunc(int, int)'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
Any help would be appreciated. Has anyone successfully built Bullet from Code::Blocks?

Here are my system specs:
OS: Windows Vista 64-Bit
Processor: Intel Core 2 Duo
IDE: Code::Blocks
Bullet: 2.74-beta1

Kukanani
User avatar
projectileman
Posts: 109
Joined: Thu Dec 14, 2006 4:27 pm
Location: Colombia

Re: Problem Building with Code::Blocks on Vista

Post by projectileman »

If you don't have MSVC installed in your machine, then Code::blocks has to use its default compiler : the GNU compiler for Windows (MINGW), which is different from the Microsoft one. F.E. the static libraries on MSVC have *.lib extension while on MingW the libraries have *.a extension, and also they are very different in their binary format.

Also, the configuration for projects could differ if you are using MSVC or MingW. So importing a project from MSVC is not a good idea.

The best thing that you could do is to make a custom project on Code::blocks, which is relatively easy (more easier than on MSVC). You only need to make 3 projects: Bullet Library, OpenGL Application library and your demo executable.
1) For making the Bullet Library, you must create an Static library project on Code::Blocks, it will create a folder which you could name as BulletLib. Remove the main.c file from that project and copy the entire /src folder from Bullet original sources to your BulletLib project and add the entirey folder to your project with Project->add files Recursively . Then on Project->properties configure the include folder to be pointing to the /src folder in BulletLib folder. Compile and build. The Library binary file will be on the /bin/debug folder.

2) For making the OpenGL application Library you could do in the same way as the Bullet Library, but you will need an aditional step: including the sources of FreeGlut in that project, which are avaliable in the Extras folder. So you must create another Static Library project which you will name as BulletOpenGL, then copy the folder Demos/OpenGL to BulletOpenGL folder and also the Extras/freeglut to that folder too. Add those files to your project and configure the include directories on Project properties: add the OpenGL folder, the freeglut folder, the freeglut/GL/ folder, and aditionally you must add the /src folder from the previous project BulletLib

3) Create a Console Executable project for your first demo, include the files of the demo, and configure the project properties for include the BulletOpenGL header files and also from BulletLib/src project. And on Linker settings add the library files (*.a extension) built in both projects: BulletLib/bin/debug/BulletLib.a and BulletOpenGL/bin/debug/BulletOpenGL.a. The idea is that the demo needs to incorporate the binary code of the compiled routines from Bullet Library and OpenGL library. Otherwise you will need to include the sources in the Demo and compile them entirely with your demo files.

I hope that with that explanation you will be able to make custom projects on Code::blocks. I found Code::blocks the most easiest to use IDE for c++, and it's very productive. But at first you must learn the basics about how c++ applications should be assembled. The good thing is that you don't have to remember the compiler options with CodeBlocks, because its configuration dialogs helps you with that.

I also suggest you to make a workspace in code::blocks where you will include the folders of the projects that assembles the final application, you must organize the source folders properly, it's up to you.
Kukanani
Posts: 25
Joined: Sat Feb 21, 2009 5:08 am

Re: Problem Building with Code::Blocks on Vista

Post by Kukanani »

Hi

First of all, thanks for giving me that detailed explanation.

Unfortunately, while building in step 1 I got these errors:

Code: Select all

||=== BulletLib, Release ===|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionDispatch\btConvexConvexAlgorithm.cpp||In constructor `btPerturbedContactResult::btPerturbedContactResult(btManifoldResult*, const btTransform&, const btTransform&, const btTransform&, bool, btIDebugDraw*)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionDispatch\btConvexConvexAlgorithm.cpp|106|warning: `btPerturbedContactResult::m_perturbA' will be initialized after|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionDispatch\btConvexConvexAlgorithm.cpp|105|warning:   `btTransform btPerturbedContactResult::m_unPerturbedTransform'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionDispatch\btConvexConvexAlgorithm.cpp|117|warning:   when initialized here|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionDispatch\btConvexConvexAlgorithm.cpp||In member function `virtual void btConvexConvexAlgorithm::processCollision(btCollisionObject*, btCollisionObject*, const btDispatcherInfo&, btManifoldResult*)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionDispatch\btConvexConvexAlgorithm.cpp|210|warning: unused variable 'sepDist'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionDispatch\btConvexPlaneCollisionAlgorithm.cpp||In member function `virtual void btConvexPlaneCollisionAlgorithm::processCollision(btCollisionObject*, btCollisionObject*, const btDispatcherInfo&, btManifoldResult*)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionDispatch\btConvexPlaneCollisionAlgorithm.cpp|105|warning: unused variable 'hasCollision'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionDispatch\btConvexPlaneCollisionAlgorithm.cpp|107|warning: unused variable 'planeConstant'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionDispatch\btGhostObject.h|174|warning: no newline at end of file|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionShapes\btCompoundShape.h||In constructor `btCompoundShape::btCompoundShape(bool)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionShapes\btCompoundShape.h|166|warning: `btCompoundShape::m_localScaling' will be initialized after|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionShapes\btCompoundShape.h|60|warning:   `btDbvt*btCompoundShape::m_dynamicAabbTree'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionShapes\btCompoundShape.cpp|27|warning:   when initialized here|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionShapes\btCompoundShape.cpp||In member function `void btCompoundShape::updateChildTransform(int, const btTransform&)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\CollisionShapes\btCompoundShape.cpp|96|warning: unused variable 'index'|
..\src\BulletCollision\CollisionShapes\btMaterial.h|34|warning: no newline at end of file|
..\src\BulletCollision\CollisionShapes\btMultimaterialTriangleMeshShape.h||In constructor `btMultimaterialTriangleMeshShape::btMultimaterialTriangleMeshShape(btStridingMeshInterface*, bool, bool)':|
..\src\BulletCollision\CollisionShapes\btMultimaterialTriangleMeshShape.h|40|warning: unused variable 'm_triangle'|
..\src\BulletCollision\CollisionShapes\btMultimaterialTriangleMeshShape.h||In constructor `btMultimaterialTriangleMeshShape::btMultimaterialTriangleMeshShape(btStridingMeshInterface*, bool, const btVector3&, const btVector3&, bool)':|
..\src\BulletCollision\CollisionShapes\btMultimaterialTriangleMeshShape.h|74|warning: unused variable 'm_triangle'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\Gimpact\btGImpactBvh.cpp||In member function `int btBvhTree::_sort_and_calc_splitting_index(GIM_BVH_DATA_ARRAY&, int, int, int)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\Gimpact\btGImpactBvh.cpp|153|warning: unused variable 'unbal'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\Gimpact\btGImpactQuantizedBvh.cpp||In member function `int btQuantizedBvhTree::_sort_and_calc_splitting_index(GIM_BVH_DATA_ARRAY&, int, int, int)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\Gimpact\btGImpactQuantizedBvh.cpp|174|warning: unused variable 'unbal'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\NarrowPhaseCollision\btGjkEpa2.cpp||In member function `gjkepa2_impl::GJK::eStatus::_ gjkepa2_impl::GJK::Evaluate(const gjkepa2_impl::tShape&, const btVector3&)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\NarrowPhaseCollision\btGjkEpa2.cpp|262|warning: enumeration value `Failed' not handled in switch|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\NarrowPhaseCollision\btGjkEpa2.cpp|857|warning: enumeration value `Valid' not handled in switch|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\NarrowPhaseCollision\btGjkEpaPenetrationDepthSolver.cpp||In member function `virtual bool btGjkEpaPenetrationDepthSolver::calcPenDepth(btVoronoiSimplexSolver&, const btConvexShape*, const btConvexShape*, const btTransform&, const btTransform&, btVector3&, btVector3&, btVector3&, btIDebugDraw*, btStackAlloc*)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletCollision\NarrowPhaseCollision\btGjkEpaPenetrationDepthSolver.cpp|35|warning: unused variable 'radialmargin'|
..\src\BulletCollision\CollisionDispatch\btGhostObject.h|174|warning: no newline at end of file|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\ConstraintSolver\btGeneric6DofConstraint.cpp||In member function `int btGeneric6DofConstraint::setLinearLimits(btTypedConstraint::btConstraintInfo2*)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\ConstraintSolver\btGeneric6DofConstraint.cpp|535|warning: unused variable 'd6constraint'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\ConstraintSolver\btHingeConstraint.cpp||In member function `virtual void btHingeConstraint::solveConstraintObsolete(btSolverBody&, btSolverBody&, btScalar)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\ConstraintSolver\btHingeConstraint.cpp|528|warning: unused variable 'relaxation'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\ConstraintSolver\btSequentialImpulseConstraintSolver.cpp||In member function `void btSequentialImpulseConstraintSolver::resolveSingleConstraintRowGeneric(btSolverBody&, btSolverBody&, const btSolverConstraint&)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\ConstraintSolver\btSequentialImpulseConstraintSolver.cpp|98|warning: unused variable 'delta_rel_vel'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\ConstraintSolver\btSliderConstraint.h||In constructor `btSliderConstraint::btSliderConstraint()':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\ConstraintSolver\btSliderConstraint.h|54|warning: `btSliderConstraint::m_useLinearReferenceFrameA' will be initialized after|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\ConstraintSolver\btSliderConstraint.h|50|warning:   `bool btSliderConstraint::m_useSolveConstraintObsolete'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\ConstraintSolver\btSliderConstraint.cpp|74|warning:   when initialized here|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\ConstraintSolver\btSliderConstraint.h||In constructor `btSliderConstraint::btSliderConstraint(btRigidBody&, btRigidBody&, const btTransform&, const btTransform&, bool)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\ConstraintSolver\btSliderConstraint.h|54|warning: `btSliderConstraint::m_useLinearReferenceFrameA' will be initialized after|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\ConstraintSolver\btSliderConstraint.h|50|warning:   `bool btSliderConstraint::m_useSolveConstraintObsolete'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\ConstraintSolver\btSliderConstraint.cpp|87|warning:   when initialized here|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\Dynamics\btDiscreteDynamicsWorld.cpp||In constructor `btClosestNotMeConvexResultCallback::btClosestNotMeConvexResultCallback(btCollisionObject*, const btVector3&, const btVector3&, btOverlappingPairCache*)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\Dynamics\btDiscreteDynamicsWorld.cpp|777|warning: `btClosestNotMeConvexResultCallback::m_allowedPenetration' will be initialized after|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\Dynamics\btDiscreteDynamicsWorld.cpp|776|warning:   `btCollisionObject*btClosestNotMeConvexResultCallback::m_me'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\Dynamics\btDiscreteDynamicsWorld.cpp|787|warning:   when initialized here|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\Dynamics\btDiscreteDynamicsWorld.cpp||In member function `virtual void btDiscreteDynamicsWorld::integrateTransforms(btScalar)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletDynamics\Dynamics\btDiscreteDynamicsWorld.cpp|873|warning: unused variable 'convexShape'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\PpuAddressSpace.h|7|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\PpuAddressSpace.h|8|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\PpuAddressSpace.h|7|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\PpuAddressSpace.h|8|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\PpuAddressSpace.h|7|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\PpuAddressSpace.h|8|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\PpuAddressSpace.h|7|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\PpuAddressSpace.h|8|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\PpuAddressSpace.h|7|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\PpuAddressSpace.h|8|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuCollisionTaskProcess.cpp||In constructor `SpuCollisionTaskProcess::SpuCollisionTaskProcess(btThreadSupportInterface*, unsigned int)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuCollisionTaskProcess.cpp|37|warning: comparison between signed and unsigned integer expressions|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuCollisionTaskProcess.cpp||In member function `void SpuCollisionTaskProcess::initialize2(bool)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuCollisionTaskProcess.cpp|86|warning: comparison between signed and unsigned integer expressions|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuCollisionTaskProcess.cpp||In member function `void SpuCollisionTaskProcess::issueTask2()':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuCollisionTaskProcess.cpp|142|warning: comparison between signed and unsigned integer expressions|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuCollisionTaskProcess.cpp||In member function `void SpuCollisionTaskProcess::flush2()':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuCollisionTaskProcess.cpp|273|warning: converting of negative value `-0x000000001' to `unsigned int'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuCollisionTaskProcess.cpp|276|warning: comparison between signed and unsigned integer expressions|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\PpuAddressSpace.h|7|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\PpuAddressSpace.h|8|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\PpuAddressSpace.h|7|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\PpuAddressSpace.h|8|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\..\PpuAddressSpace.h|7|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\..\PpuAddressSpace.h|8|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\..\PpuAddressSpace.h|7|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\..\PpuAddressSpace.h|8|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\SpuContactResult.cpp||In function `bool ManifoldResultAddContactPoint(const btVector3&, const btVector3&, float, btPersistentManifold*, btTransform&, btTransform&, btScalar, btScalar, bool)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\SpuContactResult.cpp|87|warning: unused variable 'contactTreshold'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\..\PpuAddressSpace.h|7|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\..\PpuAddressSpace.h|8|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\..\PpuAddressSpace.h|7|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\..\PpuAddressSpace.h|8|warning: ignoring #pragma warning |
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|26|vectormath_aos.h: No such file or directory|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|28|error: `Vectormath' has not been declared|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|28|error: `Aos' is not a namespace-name|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|28|error: expected namespace-name before ';' token|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|39|error: `Vector3' does not name a type|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|43|error: expected `)' before '&' token|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|46|error: `Vector3' has not been declared|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|46|error: ISO C++ forbids declaration of `half_' with no type|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|49|error: `Vector3' does not name a type|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|53|error: expected `)' before '&' token|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|66|error: variable or field `Set' declared void|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|66|error: `Box::Set' declared as an `inline' variable|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|66|error: `int Box::Set' is not a static member of `class Box'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|66|error: `Vector3' was not declared in this scope|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|66|error: `half_' was not declared in this scope|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|67|error: expected `,' or `;' before '{' token|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h||In member function `void Box::Set(float, float, float)':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|75|error: `half' was not declared in this scope|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|75|error: `Vector3' was not declared in this scope|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|75|warning: unused variable 'half'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|75|warning: unused variable 'Vector3'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|79|error: `Vector3' does not name a type|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|95|error: `Point3' does not name a type|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h||In constructor `BoxPoint::BoxPoint()':|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\Box.h|93|error: class `BoxPoint' does not have any field named `localPoint'|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|24|error: `Vectormath' has not been declared|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|24|error: `Aos' is not a namespace-name|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|24|error: expected namespace-name before ';' token|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|61|error: `Vector3' was not declared in this scope|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|61|error: `normal' was not declared in this scope|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|61|error: expected primary-expression before '&' token|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|61|error: `boxPointA' was not declared in this scope|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|61|error: expected primary-expression before '&' token|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|61|error: `boxPointB' was not declared in this scope|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|62|error: expected primary-expression before '&' token|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|62|error: `boxA' was not declared in this scope|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|62|error: expected primary-expression before "const"|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|62|error: expected primary-expression before '&' token|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|62|error: `boxB' was not declared in this scope|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|63|error: expected primary-expression before "const"|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|64|error: expected primary-expression before "float"|
C:\gamedev\bullet-2.74\BulletLib\src\BulletMultiThreaded\SpuNarrowPhaseCollisionTask\boxBoxDistance.h|64|error: initializer expression list treated as compound expression|
..\src\BulletMultiThreaded\vectormath2bullet.h|38|error: `Vectormath' has not been declared|
..\src\BulletMultiThreaded\vectormath2bullet.h|38|error: expected initializer before "getVmVector3"|
..\src\BulletMultiThreaded\vectormath2bullet.h|43|error: `Vectormath' has not been declared|
..\src\BulletMultiThreaded\vectormath2bullet.h|43|error: expected `,' or `...' before '&' token|
..\src\BulletMultiThreaded\vectormath2bullet.h|44|error: ISO C++ forbids declaration of `Vector3' with no type|
..\src\BulletMultiThreaded\vectormath2bullet.h||In function `btVector3 getBtVector3(int)':|
..\src\BulletMultiThreaded\vectormath2bullet.h|45|error: `vmVec' was not declared in this scope|
..\src\BulletMultiThreaded\vectormath2bullet.h|47|error: `Vectormath' has not been declared|
..\src\BulletMultiThreaded\vectormath2bullet.h|47|error: expected `,' or `...' before '&' token|
..\src\BulletMultiThreaded\vectormath2bullet.h|48|error: ISO C++ forbids declaration of `Point3' with no type|
..\src\BulletMultiThreaded\vectormath2bullet.h||In function `btVector3 getBtVector3(int)':|
..\src\BulletMultiThreaded\vectormath2bullet.h|48|error: redefinition of `btVector3 getBtVector3(int)'|
..\src\BulletMultiThreaded\vectormath2bullet.h|44|error: `btVector3 getBtVector3(int)' previously defined here|
..\src\BulletMultiThreaded\vectormath2bullet.h|49|error: `vmVec' was not declared in this scope|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 63 warnings ===|
It looks like I don't have some math files included, but I can't figure out why, because I copied the entire src dir like you said.

and just making sure, when you say "configure the include folder", does that mean Search directories->Compiler, or Search directories->Resource compiler? I have it set in both just to be sure.

Kukanani
User avatar
projectileman
Posts: 109
Joined: Thu Dec 14, 2006 4:27 pm
Location: Colombia

Re: Problem Building with Code::Blocks on Vista

Post by projectileman »

In that case you must remove the multi-thread part of Bullet for now (just remove BulletMultiThreaded folder from your project).
Later, you could configure better the multi-thread version of bullet, by referencing the SIMD Vector Math library correctly.
Kukanani
Posts: 25
Joined: Sat Feb 21, 2009 5:08 am

Re: Problem Building with Code::Blocks on Vista

Post by Kukanani »

Thanks for the help so far. I've gotten steps 1 and 2 done. I made a new project, and got it built fine...until linking.

Code: Select all

..\OpenGL\GL_ShapeDrawer.h|68|warning: no newline at end of file|
C:\gamedev\bullet-2.74\Demos\BasicDemo\main.cpp||In function `int main(int, char**)':|
C:\gamedev\bullet-2.74\Demos\BasicDemo\main.cpp|72|warning: unused variable 'tmp'|
C:\gamedev\bullet-2.74\Demos\BasicDemo\main.cpp|69|warning: unused variable 'ourPtr'|
C:\gamedev\bullet-2.74\Demos\BasicDemo\main.cpp|89|warning: no newline at end of file|
..\OpenGL\GL_ShapeDrawer.h|68|warning: no newline at end of file|
obj\Release\BasicDemo\BasicDemo.o:BasicDemo.cpp:(.text+0x17)||undefined reference to `_glClear@4'|
obj\Release\BasicDemo\BasicDemo.o:BasicDemo.cpp:(.text+0x1c4)||undefined reference to `_glFlush@0'|
obj\Release\BasicDemo\BasicDemo.o:BasicDemo.cpp:(.text+0x216)||undefined reference to `_glFlush@0'|
obj\Release\BasicDemo\BasicDemo.o:BasicDemo.cpp:(.text+0x242)||undefined reference to `_glClear@4'|
obj\Release\BasicDemo\BasicDemo.o:BasicDemo.cpp:(.text+0x259)||undefined reference to `_glFlush@0'|
obj\Release\BasicDemo\BasicDemo.o:BasicDemo.cpp:(.text+0x26f)||undefined reference to `_glFlush@0'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x66)||undefined reference to `_glBegin@4'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x81)||undefined reference to `_glColor3f@12'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x9e)||undefined reference to `_glVertex3d@24'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0xb9)||undefined reference to `_glColor3f@12'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0xd9)||undefined reference to `_glVertex3d@24'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x120)||undefined reference to `_glBegin@4'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x144)||undefined reference to `_glColor4f@16'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x161)||undefined reference to `_glVertex3d@24'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x17e)||undefined reference to `_glVertex3d@24'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x1d0)||undefined reference to `_glColor4f@16'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x1d8)||undefined reference to `_glPushMatrix@0'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x1f0)||undefined reference to `_glTranslatef@12'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x327)||undefined reference to `_glColor4f@16'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x32f)||undefined reference to `_glPushMatrix@0'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x348)||undefined reference to `_glTranslatef@12'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x374)||undefined reference to `_glScaled@24'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x386)||undefined reference to `_glPopMatrix@0'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x558)||undefined reference to `_glBegin@4'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x580)||undefined reference to `_glColor4f@16'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x59c)||undefined reference to `_glNormal3d@24'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x5b9)||undefined reference to `_glVertex3d@24'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x5dc)||undefined reference to `_glVertex3d@24'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x5ff)||undefined reference to `_glVertex3d@24'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x607)||undefined reference to `_glEnd@0'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x671)||undefined reference to `_glRasterPos3f@12'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x75b)||undefined reference to `_glColor4f@16'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x76a)||undefined reference to `_glBegin@4'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x787)||undefined reference to `_glVertex3d@24'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x7a3)||undefined reference to `_glVertex3d@24'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x7ab)||undefined reference to `_glEnd@0'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x7c6)||undefined reference to `_glRasterPos3f@12'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0xed)||undefined reference to `_glEnd@0'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x192)||undefined reference to `_glEnd@0'|
..\..\BulletOpenGL\libBulletOpenGL.a(GLDebugDrawer.o):GLDebugDrawer.cpp:(.text+0x219)||undefined reference to `_glPopMatrix@0'|
..\..\BulletOpenGL\libBulletOpenGL.a(DemoApplication.o):DemoApplication.cpp:(.text+0x7d4)||undefined reference to `_glLightfv@12'|
..\..\BulletOpenGL\libBulletOpenGL.a(DemoApplication.o):DemoApplication.cpp:(.text+0x7f0)||undefined reference to `_glLightfv@12'|
..\..\BulletOpenGL\libBulletOpenGL.a(DemoApplication.o):DemoApplication.cpp:(.text+0x80c)||undefined reference to `_glLightfv@12'|
..\..\BulletOpenGL\libBulletOpenGL.a(DemoApplication.o):DemoApplication.cpp:(.text+0x82b)||undefined reference to `_glLightfv@12'|
..\..\BulletOpenGL\libBulletOpenGL.a(DemoApplication.o):DemoApplication.cpp:(.text+0x847)||undefined reference to `_glLightfv@12'|
..\..\BulletOpenGL\libBulletOpenGL.a(DemoApplication.o):DemoApplication.cpp:(.text+0x8ad)||undefined reference to `_glEnable@4'|
..\..\BulletOpenGL\libBulletOpenGL.a(DemoApplication.o):DemoApplication.cpp:(.text+0x8bc)||undefined reference to `_glEnable@4'|
..\..\BulletOpenGL\libBulletOpenGL.a(DemoApplication.o):DemoApplication.cpp:(.text+0x8cb)||undefined reference to `_glEnable@4'|
..\..\BulletOpenGL\libBulletOpenGL.a(DemoApplication.o):DemoApplication.cpp:(.text+0x8da)||undefined reference to `_glShadeModel@4'|
..\..\BulletOpenGL\libBulletOpenGL.a(DemoApplication.o):DemoApplication.cpp:(.text+0x8e9)||undefined reference to `_glEnable@4'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 5 warnings ===|
If you could help me get past this obstacle (hopefully the last), that would be awesome.

Kukanani
bunengzaicai
Posts: 15
Joined: Sun Feb 15, 2009 3:42 am

Re: Problem Building with Code::Blocks on Vista

Post by bunengzaicai »

It seems like you installed OpenGL incorrectly in your computer or it is not included in path.
Do you have those dlls which are needed by OpenGL such as glut32.dll and glut32.lib?
My computer is AMD64-2-core + vs2008, It works well.
User avatar
projectileman
Posts: 109
Joined: Thu Dec 14, 2006 4:27 pm
Location: Colombia

Re: Problem Building with Code::Blocks on Vista

Post by projectileman »

In Codeblocks+MingW, the OpenGL configuration is somehow different from MSVC.
In the Demo, on Project->Properites->linking settings, you have to add manually these libraries:
opengl32
glu32
gdi32
winmm
Kukanani
Posts: 25
Joined: Sat Feb 21, 2009 5:08 am

Re: Problem Building with Code::Blocks on Vista

Post by Kukanani »

Adding those libraries did the trick.

Thanks a million for helping me to get this to work.

Kukanani
Siegfried
Posts: 5
Joined: Fri Apr 10, 2009 3:15 pm

Re: Problem Building with Code::Blocks on Vista

Post by Siegfried »

Hi to everyone,
projectileman - thanks for the detailed info

my first post here, hopefully I wont break any rules ;)

I followed those steps - I have 3 projects, bulletLib, bulletOpenGl, bulletTest (which is Hello World from Wiki) - everything works fine.

Now I've copied BulletBasicDemo files to new C::B project (BasicDemo.cpp/.h, main.cpp).
It compiles. But when I start the app, it crashes (I've put glut32.dll and glew32.dll into build lib) - I see the console starrting, then the main empty window and crash.

Here is my linker log:

Code: Select all

mingw32-g++.exe -LC:\bullet-2.74\Glut -LC:\wxWidgets-2.8.8\lib\gcc_lib -LC:\MinGW\lib  -o bin\Debug\BulletBasicDemo.exe obj\Debug\main.o obj\Debug\BasicDemo.o    ..\BulletOpenGL\libBulletOpenGL.a C:\bullet-2.74\Glut\glut32.lib ..\BulletLib\libBulletLib.a -lopengl32 -lglu32 -lwinmm -lgdi32 -lglew32 
Output size is 6.35 MB
Process terminated with status 0 (0 minutes, 5 seconds)
Any ideas?
Thanks
User avatar
sinoth
Posts: 13
Joined: Tue Apr 07, 2009 8:27 pm
Location: USA

Re: Problem Building with Code::Blocks on Vista

Post by sinoth »

Siegfried, I believe if you run the app yourself from the console (open a command window, browse to the binary manually and run it) then you can see the error that is causing the crash instead of it going away instantly.
Siegfried
Posts: 5
Joined: Fri Apr 10, 2009 3:15 pm

Re: Problem Building with Code::Blocks on Vista

Post by Siegfried »

no error at all from console (just standard window crash message about finding solution), but when I run it from Code::Blocks, the result is:
Process returned -1073741819 (0xC0000005) execution time : 1.874 s
User avatar
sinoth
Posts: 13
Joined: Tue Apr 07, 2009 8:27 pm
Location: USA

Re: Problem Building with Code::Blocks on Vista

Post by sinoth »

Can you run it through the debugger in C::B to see if that gives any useful info?
Siegfried
Posts: 5
Joined: Fri Apr 10, 2009 3:15 pm

Re: Problem Building with Code::Blocks on Vista

Post by Siegfried »

nope, segmentation fault (everytime I start it) - only __end__() at stack