Thread: How to enable C++1y in a project?
 |
This question is not answered.
Helpful answers available: 2.
Correct answers available: 1.
|
|
Replies:
3
-
Last Post:
Apr 24, 2018 4:46 AM
Last Post By: Greg Reese
|
|
|
Posts:
13
Registered:
6/18/15
|
|
I want to enable C++1y in a project that has both C++ and C files. I am using BCC32C, which supports C++1y.
I can put "-std=c++1y" to "Additional options to pass to compiler". If I only had C++ files, this would work. But in my case this option is used for C files too, resulting to compile error. I cannot enable "Force C++ compile", because I use SQLite and it relies on many C features.
If I modify Codegear.Cpp.Targets, and replace CLANG_LanguageStandard "c++11" with "c++1y", everything compiles correctly in C++1y. But I would have to modify this file on every developer's computer, because it's an internal configuration file.
Is there a way to enable C++1y via project file somehow? I tried to set CLANG_LanguageStandard in project file, but this value is not used in Codegear.Cpp.Targets, so the project is compiled in C++11.
|
|
|
Posts:
100
Registered:
7/15/05
|
|
Is there a way to enable C++1y via project file somehow? I tried to set CLANG_LanguageStandard in project file, but this value is not used in Codegear.Cpp.Targets, so the project is compiled in C++11.
In the IDE, go to Project | Options. In the Target field, select "All configurations - 32-bit Windows platform". On the left pane, select C++ Compiler and under Classic Compiler, uncheck Use 'classic' Borland compiler . This will make the project use the CLANG compiler.
|
|
|
|
Posts:
13
Registered:
6/18/15
|
|
Is there a way to enable C++1y via project file somehow? I tried to set CLANG_LanguageStandard in project file, but this value is not used in Codegear.Cpp.Targets, so the project is compiled in C++11.
In the IDE, go to Project | Options. In the Target field, select "All configurations - 32-bit Windows platform". On the left pane, select C++ Compiler and under Classic Compiler, uncheck Use 'classic' Borland compiler . This will make the project use the CLANG compiler.
I am using CLANG compiler, but it uses C++11. I want to use C++1y (C++14).
|
|
|
|
Posts:
100
Registered:
7/15/05
|
|
|
|
|
Legend
|
|
Helpful Answer
(5 pts)
|
|
Correct Answer
(10 pts)
|
|
Connect with Us