View Issue Details

IDProjectCategoryView StatusLast Update
0005752ardourbugspublic2013-10-26 15:52
Reporternolaiz Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0005752: --cxx11 configuration flag broken for GCC<4.7
DescriptionWhen using --cxx11 on configuration I get:

Checking for compiler flags ['-std=c++11'] : no
The configuration failed



From GCC documentation [1]:

To enable C++0x support, add the command-line parameter -std=c++0x to your g++ command line. Or, to enable GNU extensions in addition to C++0x extensions, add -std=gnu++0x to your g++ command line. [b]GCC 4.7 and later support -std=c++11 and -std=gnu++11 as well[/b].

[1]http://gcc.gnu.org/projects/cxx0x.html



Additional InformationI (unclearly :)) reported it when describing unrelated bug 0005751.
TagsNo tags attached.

Relationships

related to 0005751 closedx42 flag for c++11 is not -std=c++11 but -std=c++0x here (linux, gcc 4.6.4) 

Activities

2013-10-26 15:46

 

c++0x.patch (613 bytes)   
diff --git a/wscript b/wscript
index 3d01632..7b22869 100644
--- a/wscript
+++ b/wscript
@@ -114,8 +114,8 @@ def set_compiler_flags (conf,opt):
     is_clang = conf.env['CXX'][0].endswith('clang++')
     
     if conf.options.cxx11:
-        conf.check_cxx(cxxflags=["-std=c++11"])
-        conf.env.append_unique('CXXFLAGS', ['-std=c++11'])
+        conf.check_cxx(cxxflags=["-std=c++0x"])
+        conf.env.append_unique('CXXFLAGS', ['-std=c++0x'])
         if platform == "darwin":
             conf.env.append_unique('CXXFLAGS', ['-stdlib=libc++'])
             conf.env.append_unique('LINKFLAGS', ['-lc++'])
c++0x.patch (613 bytes)   

nolaiz

2013-10-26 15:52

reporter   ~0015463

Using the attached patch compiled successfully on GCC 4.6.4.

Issue History

Date Modified Username Field Change
2013-10-26 15:43 nolaiz New Issue
2013-10-26 15:46 nolaiz File Added: c++0x.patch
2013-10-26 15:48 x42 Relationship added related to 0005751
2013-10-26 15:52 nolaiz Note Added: 0015463