fork download
  1. #include <boost/property_tree/xml_parser.hpp>
  2. #include <boost/property_tree/ptree.hpp>
  3. using namespace boost::property_tree;
  4.  
  5. bool foo(std::string itunes_library_xml_path)
  6. {
  7. ptree pt;
  8. xml_parser::read_xml( itunes_library_xml_path.c_str(), pt, xml_parser::no_comments | xml_parser::trim_whitespace);
  9. return true;
  10. }
  11. int main()
  12. {
  13.  
  14. return 0;
  15. }
  16.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:46: error: boost/property_tree/xml_parser.hpp: No such file or directory
prog.cpp:2:41: error: boost/property_tree/ptree.hpp: No such file or directory
prog.cpp:3: error: ‘boost’ has not been declared
prog.cpp:3: error: ‘property_tree’ is not a namespace-name
prog.cpp:3: error: expected namespace-name before ‘;’ token
prog.cpp:5: error: ‘string’ is not a member of ‘std’
prog.cpp:6: error: expected ‘,’ or ‘;’ before ‘{’ token
stdout
Standard output is empty