CGAL 5 requires std=c++14
In order to compile v2012 against my install of CGAL 5 (ArchLinux, GCC v11.1) I had to bump the C++ standard to c++14 in wmake/rules/General/Gcc/c++
as c++11 is not sufficient to handle CGAL 5. I did not try more recent standards.
No child items are currently assigned. Use child items to break down this issue into smaller parts.
Link issues together to show that they're related. Learn more.
Activity
- Mark OLESEN assigned to @mark
assigned to @mark
- Maintainer
Hi @dariop
This is indeed a known limitation with current setup. We have still stuck with c++11 due to gcc-4.8.5, which is what older production systems (ie, CentOS 7) have. Can bump this
No fundamental problem with switching to c++14, but this bumps the minimum system requirements. So a bit of a trade-off again. Nonetheless, something that I want to address.
Edited by Mark OLESEN - Author
Hi Mark,
Thank you for your attention.
IMHO if someone is stuck with such a old compiler, they may as well stick to a previous release of openfoam, but I understand your position.
It is anyway a pretty easy fix to make on the fly before compiling for anyone with minimal experience.
Feel free to close the issue (or keep it open as a reminder).
- Maintainer
IMHO if someone is stuck with such a old compiler, they may as well stick to a previous release of openfoam, but I understand your position.
In an ideal world this would be the case, and certainly for an individual user. The problem is with various ages of clusters and installations at data centres, which are reinstalled/updated less frequently. One of my associates has the personal pain of testing/running OpenFOAM on systems that come with a gcc-4.4 as the system compiler. Then have to work your way up to compile a new ThirdParty gcc version in order to compile OpenFOAM and a newer clang version (for the mesa LLVM pipeline). Quite annoying for him.
- Please register or sign in to reply
- Mark OLESEN mentioned in commit c2697f46
mentioned in commit c2697f46
- Kutalmış Berçin added community label
added community label
- Maintainer
Hi @dariop - I am closing out this issue for now. I have updated all of the compiler flags for non-gcc, but will need to leave with c++11 for gcc until our lowest common element (currently CentOS 7) catches up. Otherwise we have many, many problems with compilation.
- Mark OLESEN closed
closed