Gecode / gecode

Generic Constraint Development Environment
https://www.gecode.org
Other
283 stars 76 forks source link

Build fails with Bison 3.7 #77

Closed kaol closed 4 years ago

kaol commented 4 years ago

Debian updated to Bison 3.7 and building Gecode 6.2.0 fails with it. The gecode/flatzinc/parser.tab.cpp file it generates has an #include "parser.tab.hpp" directive in it and since make renames parser.tab.hpp as parser.tab.hh, that fails.

I fixed it for Debian by adding this to the gecode/flatzinc/parser.tab.cpp target in Makefile.in:

sed -i 's/^#include "parser.tab.hpp"/#include "parser.tab.hh"/' gecode/flatzinc/parser.tab.cpp
zayenz commented 4 years ago

This has been fixed in develop now, and will be in the next release.