#40515: codeblocks: fails to compile with libc++ -------------------------+--------------------- Reporter: mojca@… | Owner: mojca@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: codeblocks | -------------------------+--------------------- Comment (by mojca@…): Thank you for the explanation. I submitted a bug report upstream: * http://developer.berlios.de/bugs/?func=detailbug&bug_id=19125&group_id=5358 The `tr1` seems to appear just here: {{{ ./src/include/prep.h:#include <tr1/memory> ./src/include/prep.h: using std::tr1::shared_ptr; ./src/include/prep.h: using std::tr1::static_pointer_cast; ./src/include/prep.h: using std::tr1::weak_ptr; }}} so it doesn't seem like much work. It also appears here, but for a different purpose: {{{ ./src/plugins/codecompletion/cctest/cctest.cpp: Tokenizer::SetReplacementString(_T("_GLIBCXX_BEGIN_NAMESPACE_TR1"), _T("namespace tr1 {")); ./src/plugins/codecompletion/codecompletion.cpp: repl[_T("_GLIBCXX_BEGIN_NAMESPACE_TR1")] = _T("namespace tr1 {"); }}} I believe I need to use {{{ #if __cplusplus >= 201103L ... #else ... #endif }}} right? Just a note to myself: play with `-std=c++11` and [http://nadeausoftware.com/articles/2011/12/c_c_tip_how_list_compiler_predefi... use these options] to inspect the value of `__cplusplus`, for example: {{{ clang++ -std=c++11 -dM -E -x c++ /dev/null }}} -- Ticket URL: <https://trac.macports.org/ticket/40515#comment:8> MacPorts <http://www.macports.org/> Ports system for OS X