Opened 7 years ago
Closed 2 years ago
#54395 closed defect (fixed)
codeblocks: needs C++11
Reported by: | mojca (Mojca Miklavec) | Owned by: | mojca (Mojca Miklavec) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | mf2k (Frank Schima) | |
Port: | codeblocks |
Description
Codeblocks currently fails to build without C++11 compiler:
/usr/bin/clang++ -std=c++11 -DHAVE_CONFIG_H -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/wx/include/osx_cocoa-unicode-3.0 -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__ -D__WXOSX_COCOA__ -I../../src/include -I../../src/include -I../../src/sdk/wxscintilla/include -I../../src/include/scripting/sqplus -I../../src/include/mozilla_chardet -I../../src/include/mozilla_chardet/mfbt -I../../src/include/mozilla_chardet/nsprpub/pr/include -I../../src/include/mozilla_chardet/xpcom -I../../src/include/mozilla_chardet/xpcom/base -I../../src/include/mozilla_chardet/xpcom/glue -DCB_AUTOCONF -I/opt/local/include -DCB_PRECOMP -DPIC -I../../src/include/tinyxml -DTIXML_USE_STL=YES -pipe -Os -stdlib=libstdc++ -arch x86_64 -Winvalid-pch -fPIC -fexceptions -o sdk_precomp.h.gch -xc++-header ./sdk_precomp.h In file included from ./sdk_precomp.h:13: In file included from ../../src/include/sdk_common.h:43: ../../src/include/prep.h:366:16: error: no member named 'shared_ptr' in namespace 'std' using std::shared_ptr; ~~~~~^ ../../src/include/prep.h:367:16: error: no member named 'static_pointer_cast' in namespace 'std' using std::static_pointer_cast; ~~~~~^ ../../src/include/prep.h:368:16: error: no member named 'weak_ptr' in namespace 'std' using std::weak_ptr; ~~~~~^
I'll test whether using the cxx11 1.1
PortGroup is sufficient.
Change History (3)
comment:1 Changed 7 years ago by mojca (Mojca Miklavec)
comment:2 Changed 7 years ago by kencu (Ken)
I couldn't get anywhere building it on 10.6 with libc++ and clang-3.9. I think it might be related to the precompiled headers?
In file included from tinywxuni.cpp:1: In file included from ../../../src/include/sdk_precomp.h:13: In file included from ../../../src/include/sdk_common.h:43: ../../../src/include/prep.h:23:11: error: declaration conflicts with target of using declaration already in scope const class nullptr_t ^
I tried enabling this:
configure.args-append --disable-pch
but that didn't change anything.
comment:3 Changed 2 years ago by kencu (Ken)
Resolution: | → fixed |
---|---|
Status: | new → closed |
portfile sets compiler 2011
Note: See
TracTickets for help on using
tickets.
I tried to use the
cxx11 1.1
portgroup, the compilation runs smoothly, but it then crashes with