Boost logo

Boost Users :

Subject: [Boost-users] Problem with Property Tree and xml_read
From: Rouven Walter (Cyraid_at_[hidden])
Date: 2010-05-08 09:07:10


 Hello,

I use Windows XP with MinGW and Eclipse for C++ developing. I want to use the xml parser included in the property tree library of boost.
I started trying the example at http://www.boost.org/doc/libs/1_43_0/doc/html/boost_propertytree/tutorial.html
but it failed with the following error:

**** Build of configuration Debug for project Test CPP Project ****

 

**** Internal Builder is used for build ****

g++ -IC:\Programme\boost_1_42_0 -O0 -g3 -Wall -c -fmessage-length=0 -osrc\Test.o ..\src\Test.cpp

C:/Programme/boost_1_42_0/boost/property_tree/detail/ptree_utils.hpp: In function `std::string boost::property_tree::detail::narrow(const Ch*) [with Ch = wchar_t]':

C:/Programme/boost_1_42_0/boost/property_tree/string_path.hpp:62: instantiated from here

C:/Programme/boost_1_42_0/boost/property_tree/detail/ptree_utils.hpp:76: warning: comparison between signed and unsigned integer expressions

C:/Programme/boost_1_42_0/boost/property_tree/detail/ptree_utils.hpp:76: warning: comparison is always false due to limited range of data type

C:/Programme/boost_1_42_0/boost/property_tree/detail/xml_parser_read_rapidxml.hpp: In function `void boost::property_tree::xml_parser::read_xml_internal(std::basic_istream<typename Ptree::key_type::value_type, std::char_traits<typename Ptree::key_type::value_type> >&, Ptree&, int, const std::string&) [with Ptree = boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> >]':

C:/Programme/boost_1_42_0/boost/property_tree/xml_parser.hpp:85: instantiated from `void boost::property_tree::xml_parser::read_xml(const std::string&, Ptree&, int, const std::locale&) [with Ptree = boost::property_tree::ptree]'

..\src\Test.cpp:39: instantiated from here

C:/Programme/boost_1_42_0/boost/property_tree/detail/xml_parser_read_rapidxml.hpp:108: error: non-constant `(((int)f_c) | 3072)' cannot be used as template argument

C:/Programme/boost_1_42_0/boost/property_tree/detail/xml_parser_read_rapidxml.hpp:108: error: no matching function for call to `rapidxml::xml_document<char>::parse(char*)'

Build error occurred, build is stopped

Time consumed: 4109 ms.



I have included the necessary header files in the eclipse project properties. For me, the error message seems to be some internal failure in the library?
Or where could I have done a mistake ?

Best regards, Cyraid
  

NEU: WEB.DE DSL für 19,99 EUR/mtl. und ohne Mindest-Laufzeit!   
http://produkte.web.de/go/02/

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net