Undefined reference building with MinGW-Builds (gcc 4.7.1)

My first post! Hi all!! 🙂

Today I tried to build box2D in a clean MinGW-Builds (http://sourceforge.net/projects/mingwbuilds/) with CMake-2.8.9.

Check BOX2D_BUILD_SHARED, BOX2D_BUILD_STATIC
Uncheck BOX2D_BUILD_EXAMPLES, BOX2D_INSTALL, BOX2D_INSTALL_DOC

I got:

Image

Thanks in Advance!

And THANK YOU Erin Catto for your invaluable contribution to the community.

Sorry for my English! 😳


DJ
The cmake file is just missing the entries for the motor joint, this should help: http://code.google.com/p/box2d/issues/detail?id=272
It would be nice if this could be fixed soon 😉
My fault! 😢

I forgot to mention a very important detail: I am building the last SVN source (Box2D "2.3") (revision 251)

The *new* CMakeList.txt is very different to previous! And sadly, this old problem persist in the new. 🙄

On the other hand thank you very much for your swift and very useful answer, irresistible force! 😀 Perhaps it can be adapted to the new CMakeList.

DJ

P.S: Anyone with administrator powers could move this thread to the Build Box2D subforum? Thanks!
You just need to add one line to the CMakeLists.txt file:
Code:
set(BOX2D_Joints_SRCS
   ...
   Dynamics/Joints/b2WheelJoint.cpp
   Dynamics/Joints/b2MotorJoint.cpp # add this line
)
Confirmed! Your solution is THE solution! 😁

This topic can be renamed to Undefined reference building with MinGW-Builds (gcc 4.7.1)[RESOLVED!]

Thank you very, very much!

DJ

Original thread: https://box2d.org/forum/viewtopic.php?t=8735