This is a very complex matter.
First we should know which c++ std lib is used to compile all dependencies of cb (wxwidgets in particular).
Then we'll have to compile everything with that library.
Firstly, I means that I can successfully build Code::Blocks from SVN repository by the below command lines
$ ./configure --prefix="${HOME}/Developer/CodeBlocks" \
--with-contrib-plugins="yes,-FileManager,-NassiShneiderman,-spellchecker" \
CXXFLAGS='-std=c++11'
$ make
with wxWidgets 3.0.2 installed from homebrew. The following codes
// Add std::shared_ptr in a namespace, so different implementations can be used with different compilers
namespace cb
{
#if __cplusplus >= 201103L || defined(_LIBCPP_VERSION)
using std::shared_ptr;
using std::static_pointer_cast;
using std::weak_ptr;
#else
using std::tr1::shared_ptr;
using std::tr1::static_pointer_cast;
using std::tr1::weak_ptr;
#endif
}
in prep.h are why I have said that the different c++ standard has different implement of share_ptr.
Do you know if the libstdc++ available on osx has the tr1 extensions?
I can't answer your question because my c++ knowledge is not enough to properly use smart point. Maybe, you can give me a example to check whether libstdc++ is available on OS X. However, I guess it's Yes.
Till tonight, I have made a lot of *.cbps for Code::Blocks source codes and CB plugins on Mac OS X. The mac_pack under src directory of source codes was updated to mac_pack30 by me. I don't know how to commit them to the CB repository. In virtue of those files likewise on MS Windows, I have made a SVN version of CB binary bundle on Yosemite. Unfortunately, The CodeBlocks.app is full of bugs. For examples, a lots of *.xrc for plugins are lost. Changing font size of CB Editor makes CodeBlocks.app crash. Is it a proper way to discuss those problems in this thread on CB forum?