Linker errors in MinGW

Jedive
Posts: 6
Joined: Thu Jul 26, 2007 9:27 am
Location: Madrid, Spain

Linker errors in MinGW

Post by Jedive »

I built Bullet under Windows 7 Beta using the last binary packages of CMake (to generate the Makefiles) and MinGW. During compilations, some demos which were using the GLU library failed to link (while that lib is available in my MinGW installation), but that's fine since I just need the Bullet static libraries. The problem is that when I link my application (using the libraries BulletCollision, BulletDynamics and LinearMath, the same ones I link on Mac OS X without problems), I get several linking errors reagardings the class CProfileManager, just like:
undefined reference to `CProfileManager::Start_Profile(char const*)'
Is it there any other library I should be linking on Windows that I don't need in OS X?
sparkprime
Posts: 508
Joined: Fri May 30, 2008 2:51 am
Location: Ossining, New York

Re: Linker errors in MinGW

Post by sparkprime »

That should be found in btQuickProf.cpp which should be in the math library
sparkprime
Posts: 508
Joined: Fri May 30, 2008 2:51 am
Location: Ossining, New York

Re: Linker errors in MinGW

Post by sparkprime »

Alternatively maybe you are compiling half of Bullet with BT_NO_PROFILE and half without
Jedive
Posts: 6
Joined: Thu Jul 26, 2007 9:27 am
Location: Madrid, Spain

Re: Linker errors in MinGW

Post by Jedive »

I don't know, I am just compiling using "mingw32-make" over the Makefile generated by CMake.
sparkprime
Posts: 508
Joined: Fri May 30, 2008 2:51 am
Location: Ossining, New York

Re: Linker errors in MinGW

Post by sparkprime »

You could try using jam instead, or the visual studio project files
Jedive
Posts: 6
Joined: Thu Jul 26, 2007 9:27 am
Location: Madrid, Spain

Re: Linker errors in MinGW

Post by Jedive »

I'll try using Jam to build Bullet then, since Visual Studio is not an option. I am working on several platforms (Mac OS X, Windows, Linux), and I'm using CodeLite as the IDE in all of them, because using a different editor on each platform would be a nightmare.
Jedive
Posts: 6
Joined: Thu Jul 26, 2007 9:27 am
Location: Madrid, Spain

Re: Linker errors in MinGW

Post by Jedive »

Uhmm... do I need ntmake from Visual C++ in order to build jam itself? :S
sparkprime
Posts: 508
Joined: Fri May 30, 2008 2:51 am
Location: Ossining, New York

Re: Linker errors in MinGW

Post by sparkprime »

I'm not sure as i went for the 'different editor per platform' approach :)