The reason is simple: we do not support MinGW as a platform. It is possible to make it compatible and it shouldn't be that hard: one would just have to find out that it is MinGW and use the pthreads package instead on the Windows thread package.
However we are not willing to do that ourselves. If somebody sends a patch (hint! Hint!) we will surely incorporate it. Christian -- Christian Schulte, www.ict.kth.se/~cschulte/ -----Original Message----- From: users-boun...@gecode.org [mailto:users-boun...@gecode.org] On Behalf Of Maik Riechert Sent: Friday, August 31, 2012 11:05 AM To: users@gecode.org Subject: [gecode-users] Compiling Gecode under MinGW Hi, As I want to use Gecode in Windows with Haskell and cabal-install uses GCC, I need to rebuild it from source in MinGW/MSYS. I did a ./configure --with-host-os=linux which went through and then "make" which had these errors: g++ -I. -mthreads -ffast-math -fno-strict-aliasing -O3 -fvisibility=hidden -ggdb -pipe -Wall -Wextra -pthread -DNDEBUG \ -c -o gecode/support/exception.o gecode/support/exception.cpp In file included from ./gecode/support/thread.hpp:264:0, from ./gecode/support.hh:130, from gecode/support/exception.cpp:38: ./gecode/support/thread/pthreads.hpp: In static member function 'static void Gecode::Support::Thread::sleep(unsigned int)': ./gecode/support/thread/pthreads.hpp:125:7: error: '::sleep' has not been declared ./gecode/support/thread/pthreads.hpp: In static member function 'static unsigned int Gecode::Support::Thread::npu()': ./gecode/support/thread/pthreads.hpp:133:36: error: '_SC_NPROCESSORS_ONLN' was not declared in this scope ./gecode/support/thread/pthreads.hpp:133:56: error: 'sysconf' was not declared in this scope gecode/support/exception.cpp: At global scope: gecode/support/exception.cpp:46:3: warning: 'Gecode::Exception::Exception(const char*, const char*)' redeclared without dllimport attribute after being referenced with dll linkage [enabled by default] gecode/support/exception.cpp:59:3: warning: 'virtual const char* Gecode::Exception::what() const' redeclared without dllimport attribute: previous dllimport ignored [-Wattributes] make[1]: *** [gecode/support/exception.o] Error 1 Is it possible to make this compatible? Why is it failing at all? Cheers Maik _______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users _______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users