|
Boost : |
Subject: [boost] Problem with Property Tree under WinXP, Eclipse, mingw
From: Rouven Walter (Cyraid_at_[hidden])
Date: 2010-05-09 06:32:11
Hello, I have posted the message below in the users boost mailinglist
before. But there was no satisfying answer, so I decided to post it once
again on the developers list. It seems to be a more technical problem.
I'm looking forward for your answers, thanks, Cyraid
----
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
[1]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_rapidxm
l.hpp: In function `void
boost::property_tree::xml_parser::read_xml_internal(std::basic_istream<typen
ame 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_rapidxm
l.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_rapidxm
l.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
GRATIS: Movie-Flat mit über 300 Top-Videos. Für WEB.DE Nutzer
dauerhaft kostenlos! Jetzt freischalten unter http://movieflat.web.de
References
1. http://www.boost.org/doc/libs/1_43_0/doc/html/boost_propertytree/tutorial.html
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk