Fixed FTBFS with gcc 4.8 when using c++11 standard. #223
Merged
MicheleC
merged 1 commits from fix/ftbfs/c++11
into master
3 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'fix/ftbfs/c++11'
Deleting a branch is permanent. It CANNOT be undone. Continue?
When building with gcc 4.8.4 (Ubuntu Trusty) with -std=c++11, there was FTBFS caused by conflicting definitions of abs(). Removing "using namespace std;" solves the problem.
I believe the additional #ifdef for OpenBSD was a previous attempt to prevent such issue on earlier distribution (see commit
44654c9af5
from Francois, the description seems exactly what I thought).@SlavekB could you test build in FreeBSD to see if you have any issue?
@Francois not sure if you are building for OpenBSD, but if so could you give it a test?
Both, please use -std=c++11 as additional CXXFLAGS for the compiler.
Build on FreeBSD is successfull.
064d38f2c8
into master 3 years agoThanks for testing Slavek.
Reviewers
064d38f2c8
.