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
[email protected]
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to