I'm using:
Code::Blocks 10.05
GNU GCC Compiler (MinGW)
Windows 7 (64bit)
I want to try out the BasicDemo of the Bullet physics library, using Code::Blocks. To my understanding, there are no library files in the Bullet distribution package. Only cpp-files and h-files. There are no detailed C::B instructions for Bullet available in the web, and I failed with all the undetailed instructions I could find.
So I decided to start from scratch, and created a new C::B project into the folder BasicDemo, and added the four source files to the project. I also added the following to the Project Build Options:
Compiler settings -> #defines:
_WINDOWS
Search directories:
..\OpenGL
..\..\src
When I try to build, I get dozens of "undefined reference to" errors. I suppose these are often related to linking a library, but in this case there are no lib-files or such to link to. Only source files. The first 10 errors are below. One could read from the first error, that there is a reference to btAlignedAllocInternal in the source file Win32BasicDemo.cpp, but actually there is not. Can someone help me out?
obj\Release\Win32BasicDemo.o:Win32BasicDemo.cpp|| undefined reference to `btAlignedAllocInternal(unsigned int, int)'|
obj\Release\Win32BasicDemo.o:Win32BasicDemo.cpp|| undefined reference to `DemoApplication::DemoApplication()'|
obj\Release\Win32BasicDemo.o:Win32BasicDemo.cpp|| undefined reference to `btAlignedFreeInternal(void*)'|
obj\Release\main.o:main.cpp:(.text$_ZN17btTypedConstraintD0Ev[btTypedConstraint::~btTypedConstraint()]+0xb)||undefined reference to `btAlignedFreeInternal(void*)'|
obj\Release\main.o:main.cpp:(.text$_ZN9BasicDemoD1Ev[BasicDemo::~BasicDemo()]+0x5a)||undefined reference to `vtable for Win32DemoApplication'|
obj\Release\main.o:main.cpp:(.text$_ZN9BasicDemoD1Ev[BasicDemo::~BasicDemo()]+0x70)||undefined reference to `btAlignedFreeInternal(void*)'|
obj\Release\main.o:main.cpp:(.text$_ZN9BasicDemoD1Ev[BasicDemo::~BasicDemo()]+0x78)||undefined reference to `vtable for Win32DemoApplication'|
obj\Release\main.o:main.cpp:(.text$_ZN9BasicDemoD1Ev[BasicDemo::~BasicDemo()]+0x84)||undefined reference to `DemoApplication::~DemoApplication()'|
obj\Release\main.o:main.cpp:(.text$_ZN9BasicDemoD1Ev[BasicDemo::~BasicDemo()]+0xaf)||undefined reference to `btAlignedFreeInternal(void*)'|
obj\Release\main.o:main.cpp:(.text$_ZN9BasicDemoD1Ev[BasicDemo::~BasicDemo()]+0x67)||undefined reference to `DemoApplication::~DemoApplication()'|