Page 1 of 1

Polymake c++11

Posted: 13 Apr 2015, 11:15
by Stefan
Hi,

is it possible to compile polymake with c++11 enabled? At the moment just adding CXXFLAGS="-std=c++11" does not help, is there a workaround?

Best regards
Stefan

Re: Polymake c++11

Posted: 13 Apr 2015, 12:10
by gawrilow
When do you add these flags, in which command? In configure or make all?

Re: Polymake c++11

Posted: 13 Apr 2015, 12:47
by Stefan
In configure, the command is:

./configure CXXFLAGS="-std=c++11"

Re: Polymake c++11

Posted: 15 Apr 2015, 22:22
by gawrilow
I've tried this out; the configure option is properly recognized and stored in the makefiles. But that's it with good news. Bad news are that not only ppl seems to be not yet c++11 ready, but also the perl extension API headers cause massive problems, at least with perl 5.18. While ppl can be disabled by configuration (albeit it's a pity because it's sometimes faster than all other convex hull implementations), perl extensions are vitally needed for everything in polymake. Thus the current answer to your question is unfortunately "no". It may change in the future, but both perl and ppl source code is completely outside of our influence or responsibility.

If you really need c++11 for your work, you can try to selectively enable it just for your sources. If it's in your private extension, you can add this option via extension-specific configure.pl script; it you just add single clients to existing applications, the client-specific flags can be specified in src/Makefile.inc of that application. Please be aware, however, that this hasn't been ever tested on our side. Migration to c++14 is on our roadmap but this hasn't started yet.