Boost logo

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
   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
   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

   function `std::string boost::property_tree::detail::narrow(const Ch*) [with
   Ch = wchar_t]':

   instantiated from here

   warning: comparison between signed and unsigned integer expressions

   warning: comparison is always false due to limited range of data type

   l.hpp: In function `void
   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> >]':

   instantiated from `void boost::property_tree::xml_parser::read_xml(const
   std::string&, Ptree&, int, const std::locale&) [with Ptree =

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

   l.hpp:108: error: non-constant `(((int)f_c) | 3072)' cannot be used as
   template argument

   l.hpp:108: error: no matching function for call to

   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



Boost list run by bdawes at, gregod at, cpdaniel at, john at