Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
Nightly build (please specify the date)
-
None
-
None
-
Operating System: Other
Platform: PC
-
14201
Description
I tried building in the tests and the samples directories and I get build
errors for the use of std::nocreate. For example:
/home/abackus/sources/xml-
xerces/c/tests/DOM/DeprecatedDOMCount/DeprecatedDOMCount.cpp: In
function `int main(int, char**)':
/home/abackus/sources/xml-
xerces/c/tests/DOM/DeprecatedDOMCount/DeprecatedDOMCount.cpp:229: `
nocreate' is not a member of type `std::basic_ios<char,
std::char_traits<char> >'
It looks like this is due to the nocreate enum value being removed in a more
recent version of the C++ standard libraries. In the GCC 3.2 libraries on the
cygwin platform, it appears that in fstream.h, everything is included from
<fstream> with "using std::" statements, so instead of using the expected
ios::nocreate, it's instead being resolved to std::basic_ios::nocreate, which
doesn't exist. This may also be a problem on non-cygwin platforms that use
GCC, but I can't speak for them.