graehl / yaml-cpp-old

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

Compiler error when building yaml-cpp 0.5.1 for macports 10.9.1 #234

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Partial compiler error, full log attached:

:info:build /usr/bin/clang++    -pipe -Os -I/opt/local/include -arch x86_64 
-stdlib=libc++  -DNDEBUG -arch x86_64 
-I/opt/local/var/macports/build/_opt_mports_trunk_dports_devel_yaml-cpp/yaml-cpp
/work/yaml-cpp-0.5.1/src 
-I/opt/local/var/macports/build/_opt_mports_trunk_dports_devel_yaml-cpp/yaml-cpp
/work/yaml-cpp-0.5.1/include -I/opt/local/include    -o 
CMakeFiles/yaml-cpp.dir/src/memory.cpp.o -c 
/opt/local/var/macports/build/_opt_mports_trunk_dports_devel_yaml-cpp/yaml-cpp/w
ork/yaml-cpp-0.5.1/src/memory.cpp
:info:build In file included from 
/opt/local/var/macports/build/_opt_mports_trunk_dports_devel_yaml-cpp/yaml-cpp/w
ork/yaml-cpp-0.5.1/src/memory.cpp:2:
:info:build In file included from 
/opt/local/var/macports/build/_opt_mports_trunk_dports_devel_yaml-cpp/yaml-cpp/w
ork/yaml-cpp-0.5.1/include/yaml-cpp/node/detail/node.h:12:
:info:build In file included from 
/opt/local/var/macports/build/_opt_mports_trunk_dports_devel_yaml-cpp/yaml-cpp/w
ork/yaml-cpp-0.5.1/include/yaml-cpp/node/detail/node_ref.h:12:
:info:build 
/opt/local/var/macports/build/_opt_mports_trunk_dports_devel_yaml-cpp/yaml-cpp/w
ork/yaml-cpp-0.5.1/include/yaml-cpp/node/detail/node_data.h:88:16: error: 
implicit instantiation of undefined template 'std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >'
:info:build                         std::string m_tag;
:info:build                                     ^
:info:build 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/bin/../lib/c++/v1/iosfwd:187:28: note: template is declared here
:info:build     class _LIBCPP_TYPE_VIS basic_string;
:info:build                            ^
:info:build In file included from 
/opt/local/var/macports/build/_opt_mports_trunk_dports_devel_yaml-cpp/yaml-cpp/w
ork/yaml-cpp-0.5.1/src/memory.cpp:2:
:info:build In file included from 
/opt/local/var/macports/build/_opt_mports_trunk_dports_devel_yaml-cpp/yaml-cpp/w
ork/yaml-cpp-0.5.1/include/yaml-cpp/node/detail/node.h:12:
:info:build In file included from 
/opt/local/var/macports/build/_opt_mports_trunk_dports_devel_yaml-cpp/yaml-cpp/w
ork/yaml-cpp-0.5.1/include/yaml-cpp/node/detail/node_ref.h:12:
:info:build 
/opt/local/var/macports/build/_opt_mports_trunk_dports_devel_yaml-cpp/yaml-cpp/w
ork/yaml-cpp-0.5.1/include/yaml-cpp/node/detail/node_data.h:91:16: error: 
implicit instantiation of undefined template 'std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >'
:info:build                         std::string m_scalar;
:info:build                                     ^
:info:build 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u
sr/bin/../lib/c++/v1/iosfwd:187:28: note: template is declared here
:info:build     class _LIBCPP_TYPE_VIS basic_string;
:info:build                            ^
:info:build /opt/local/bin/cmake -E cmake_progress_report 
/opt/local/var/macports/build/_opt_mports_trunk_dports_devel_yaml-cpp/yaml-cpp/w
ork/yaml-cpp-0.5.1/CMakeFiles 21
:info:build 2 errors generated.

See https://trac.macports.org/ticket/41998 for more info.

Original issue reported on code.google.com by jbe...@gmail.com on 16 Jan 2014 at 4:36

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by jbe...@gmail.com on 16 Jan 2014 at 4:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just missing a `#include <string>` in include/yaml-cpp/node/detail/node_data.h.

Original comment by s...@mehta.io on 23 Feb 2014 at 2:45

GoogleCodeExporter commented 9 years ago
Fixed, r249f0e2b61f6.

Original comment by jbe...@gmail.com on 23 Mar 2014 at 12:33