From: John L. <jla...@gm...> - 2014-10-01 01:20:57
|
On Tue, Sep 30, 2014 at 2:18 PM, Victor Bombi <so...@te...> wrote: > Hello, > > I have compiled wxWidgets 3.0.1 on mac osx 10.9 (also widgets sample) > > when compiling wxLuaModule: > > ... > In file included from > /Users/Morundi/Downloads/wxWidgets-3.0.1/include/wx/string.h:46: > /Users/Morundi/Downloads/wxWidgets-3.0.1/include/wx/strvararg.h:30:18: > fatal > error: 'tr1/type_traits' file not found > #include <tr1/type_traits> > > Any thoughts? > We must be missing some #include path, but that include should be in the compiler default include path. It lives here on my Linux box: /usr/include/c++/4.8.3/tr1/type_traits I think this describes the problem. http://stackoverflow.com/questions/9345271/xcode-4-3-and-c11-include-paths It looks like we need to add "std=c++11 -stdlib=libc++" to the compiler and linker flags. What XCode version do you use and what does this print if you add it to the CMakeLists.txt file? MESSAGE("AAA ${CMAKE_CXX_COMPILER}") Thanks, John |