You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/11/03 09:52:11 UTC
DO NOT REPLY [Bug 14201] New: -
use of ios::nocreate breaks build
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14201>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14201
use of ios::nocreate breaks build
Summary: use of ios::nocreate breaks build
Product: Xerces-C++
Version: 2.1.0
Platform: PC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Samples/Tests
AssignedTo: xerces-c-dev@xml.apache.org
ReportedBy: abraham@backus.com
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org