Polymake c++11

Discussions on installation issues go here.
Stefan
Posts: 2
Joined: 13 Apr 2015, 11:12

Polymake c++11

Postby Stefan » 13 Apr 2015, 11:15

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

User avatar
gawrilow
Main Author
Posts: 423
Joined: 25 Dec 2010, 17:40

Re: Polymake c++11

Postby gawrilow » 13 Apr 2015, 12:10

When do you add these flags, in which command? In configure or make all?

Stefan
Posts: 2
Joined: 13 Apr 2015, 11:12

Re: Polymake c++11

Postby Stefan » 13 Apr 2015, 12:47

In configure, the command is:

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

User avatar
gawrilow
Main Author
Posts: 423
Joined: 25 Dec 2010, 17:40

Re: Polymake c++11

Postby gawrilow » 15 Apr 2015, 22:22

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.


Return to “Installing polymake”