Modify

Ticket #4145 (closed Bugs: fixed)

Opened 4 years ago

Last modified 4 years ago

[patch] compile errors property_tree std::wstring

Reported by: Jan-Hein Bührman <buhrman@…> Owned by: cornedbee
Milestone: Component: property_tree
Version: Boost Development Trunk Severity: Showstopper
Keywords: property_tree wstring cygwin Cc:

Description

When compiling today's development trunk of boost, I see the following errors:

[snip]
gcc.compile.c++ bin.v2/libs/graph/build/gcc-3.4.4/release/threading-multi/graphml.o
In file included from ./boost/property_tree/ptree.hpp:15,
                 from ./boost/property_tree/detail/file_parser_error.hpp:13,
                 from ./boost/property_tree/detail/xml_parser_error.hpp:13,
                 from ./boost/property_tree/detail/xml_parser_utils.hpp:14,
                 from ./boost/graph/graphml.hpp:26,
                 from libs\graph\src\graphml.cpp:17:
./boost/property_tree/ptree_fwd.hpp:92: error: `wstring' is not a member of `std'
[snip]
In file included from ./boost/property_tree/ptree.hpp:16,
                 from ./boost/property_tree/detail/file_parser_error.hpp:13,
                 from ./boost/property_tree/detail/xml_parser_error.hpp:13,
                 from ./boost/property_tree/detail/xml_parser_utils.hpp:14,
                 from ./boost/graph/graphml.hpp:26,
                 from libs\graph\src\graphml.cpp:17:
./boost/property_tree/string_path.hpp:60: error: expected unqualified-id before '&' token
[snip]

It seems that a reference to std::wstring is not protected by the appropriate boost feature flag.

bjam was generated in the follwing way:

$ ./bootstrap.sh --prefix=$HOME/local --exec-prefix=$HOME/local/${MACHTYPE=i686-pc-cygwin}

It is compiled on Windows XP machine, under a recent update of Cygwin.

$ g++ --version
g++ (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Attached svn diff seems to solve the compilation errors.

Attachments

boost-property_tree-fix.diff Download (1.2 KB) - added by Jan-Hein Bührman <buhrman@…> 4 years ago.

Change History

Changed 4 years ago by Jan-Hein Bührman <buhrman@…>

comment:1 Changed 4 years ago by Jan-Hein Bührman <buhrman@…>

  • Summary changed from compile errors property_tree std::wstring to [patch] compile errors property_tree std::wstring

comment:2 Changed 4 years ago by cornedbee

  • Status changed from new to closed
  • Resolution set to fixed

(In [61604]) Fix property tree for systems without wstring. Fixes bug 4145

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.