[gecode-users] compilation problem on windows + mingw32

Mikael Zayenz Lagerkvist zayenz at gmail.com
Tue Sep 8 15:52:00 CEST 2009


Hi,

I'm not very familiar with mingw, and I don't know if it can be made
to compile Gecode. Please note that Gecode requires at least version
4.2 of gcc.

Apart from that, the use of timersub can be removed simply. Please see
attached patch for the change needed.

Cheers,
Mikael

2009/9/8 Alexandre Fayolle <alexandre.fayolle at logilab.fr>:
> Hi everyone,
>
> (appologies if this is the wrong mailing list)
>
> I'm having some compilation problems. I want to compile a python extension
> module which uses gecode 3.1. Python2.5 extensions require VisualStudio 2003
> and gecode needs VS2008 (stop me if I'm wrong). So I'm currently giving a try
> at mingw32.
>
> Unless I'm mistaken, the windows installer for gecode is meant to be used with
> Visual Studio, so I'm attempting to recompile gecode with mingw32 from source.
> configure went fine (eventually), but make fails with the following message:
>
> g++ -mno-cygwin -I. -DNDEBUG -Wextra -Wall -pipe -ggdb -O3 -fno-strict-aliasing
> -ffast-math -mthreads  -DGECODE_BUILD_SEARCH -c -o gecode/search/stop.o  gecode/search/stop.cpp
> In file included from ./gecode/search.hh:44,
>                 from gecode/search/stop.cpp:38:
> ./gecode/support/timer.hh: In member function 'double Gecode::Support::Timer::stop()':
> ./gecode/support/timer.hh:83: erreur: 'timersub' was not declared in this scope
>
> A quick google search didn't provide useful results.
>
> Editing gecode/support/config.hpp seems to solve this. Am I missing something obvious such as a mingw package?
>
> (By the way : is there a pre-built package with mingw32 available for downloading somewhere? This could be a great time-saver...)
>
> --
> Alexandre Fayolle                              LOGILAB, Paris (France)
> Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
> Développement logiciel sur mesure:       http://www.logilab.fr/services
> Informatique scientifique:               http://www.logilab.fr/science
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iQEVAwUBSqZSPV6T+PKoJ87eAQI4IQgAgMIjoXKXJ1s/41hA+AlTcLDq1LyvOKKh
> uOe+3ey5Aq8YRaYhJoCw2KJQDuJ8mm93iGxEXrJAz4ihl6Bn8GRf/w22bSmAUXn/
> 6Rtv04ij7C+b0qDq8gSYcy6mwP7vjCZWp2aAsRm+HubOsqBPdGF5k3fcLX+LUJDf
> j67k+/B19Vw3huXueRiYMiQUPG5xxKerx+pRTSdvWqrpLQEb/l7n9axfHOA2Deze
> xuIKIigdH9iMgQ/HSw/oGSXXDxcaNKBS2OPl04wadlt8dZt2Fjzcz+y5/VxpzG6b
> r+0Y7zq7CV3fQFqNb8TQBcBsWvHDmMhXxCIZ0enM3drgRM+RvpMCJQ==
> =PC0S
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users
>
>



-- 
Mikael Zayenz Lagerkvist, http://www.ict.kth.se/~zayenz/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: timersub-removal.patch
Type: text/x-diff
Size: 718 bytes
Desc: not available
URL: <http://www.ps.uni-sb.de/pipermail/users/attachments/20090908/24462317/attachment.patch>


More information about the gecode-users mailing list