Compilation problem with Windows/Mingw32

10 views
Skip to first unread message

Thomas Paviot

unread,
Jun 24, 2009, 9:54:34 AM6/24/09
to ode-...@googlegroups.com
Hi everyone,

I just updated my local Ode to the latest svn revision (r.1681) and get a bug while trying to build the complete solution with Mingw32 (gcc 3.4.5). The Makefile is generated with premake4:

premake4 --with-demos --with-gimpact --with-tests --os=windows --cc=gcc gmake
cd gmake
mingw32-make

And here is the result:

C:\DEVELO~1\LIBRAR~1\new_ode\build\gmake>mingw32-make
==== Building ode ====
collision_cylinder_trimesh.cpp
In file included from ../../ode/src/collision_cylinder_trimesh.cpp:35:
../../ode/src/util.h: In static member function `static bool dxWorldProcessContext::IsArenaPossible(size_t)':
../../ode/src/util.h:100: error: `SIZE_MAX' was not declared in this scope
mingw32-make[1]: *** [obj/ReleaseDoubleDLL/ode/collision_cylinder_trimesh.o] Error 1
mingw32-make: *** [ode] Error 2

Cheers,

Thomas

Daniel K. O.

unread,
Jun 24, 2009, 4:59:35 PM6/24/09
to ode-...@googlegroups.com
2009/6/24 Thomas Paviot <thomas...@free.fr>:

> I just updated my local Ode to the latest svn revision (r.1681) and get a
> bug while trying to build the complete solution with Mingw32 (gcc 3.4.5).

That might have been introduction with the latest commit, and we will
address it shortly. Use the previous revision in the meantime.


> ../../ode/src/util.h:100: error: `SIZE_MAX' was not declared in this scope
> mingw32-make[1]: *** [obj/ReleaseDoubleDLL/ode/collision_cylinder_trimesh.o]

Or you can search the archives for the discussion on how to find the
"SIZE_MAX" macro depending on your compiler.


--
Daniel K. O.
"The only way to succeed is to build success yourself"

Oleh Derevenko

unread,
Jun 27, 2009, 7:37:02 AM6/27/09
to ode-...@googlegroups.com
For MinGW it's in stdint.h.

Oleh Derevenko
-- ICQ: 36361783
Reply all
Reply to author
Forward
0 new messages