Fix compilation issue with makefile (Add -std=c++0x or -std=c++11 option)
|Assignee:||Zbigniew Rebacz||% Done:|
|Target version:||Release 2017.1|
Current makefile for POSIX dosen't work because we need to enable c++11.
#1 Updated by Jan Dolinár over 4 years ago
- Status changed from New to In Progress
- Assignee changed from Jan Dolinár to Zbigniew Rebacz
The makefile that should contain this flag is actually generated by TheIDE, so it should be probably fixed there. The problem is, that this will break the functionality for users who still use U++ on systems with older compilers lacking proper C++11 support.
I think the most sensitive solution is IMHO to change the generated code to CXX:=c++ -std=c++11 (see ide/Builders/MakeFile.cpp:75). This should make it work for systems with enough C++11 support, and can be simply overriden for others by specifying CXX="c++" explicitly when running make. What do you think?