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 xe...@xml.apache.org on 2004/10/19 19:13:51 UTC
[jira] Closed: (XERCESC-299) xerces shared library clashes with stdc++ ostream
Message:
The following issue has been closed.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XERCESC-299
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XERCESC-299
Summary: xerces shared library clashes with stdc++ ostream
Type: Bug
Status: Closed
Resolution: WON'T FIX
Project: Xerces-C++
Components:
Miscellaneous
Versions:
1.6.0
Assignee:
Reporter: Jim Suderman
Created: Thu, 27 Dec 2001 11:19 AM
Updated: Tue, 19 Oct 2004 10:13 AM
Environment: Operating System: HP-UX
Platform: HP
Description:
I consistently get a crash when I link with the xerces library and have an
ifstream object in my code. I have isolated the code to a bare miminum and
have include it at the end of this description. I have also include that pared
down makefile. I am using HP-UX 11 with aCC A.03.30 compiler. This problem
occurs with the prebuilt binaries as well as with my own recompiled copy. As
an aside I tested this on my linux box with the precomipled binaries for that
OS and did NOT get this error. In the supplied code I can do one of two things
to make the crash go away. 1) remove the linking of the xerces library, or 2)
comment out the ifstream line of code. The progam crashes when it tries to
execute the cout statement. Since this is stopping my development I would
appreciate anthing you could suggest as soon as possible.
Thanks for your help.
jim.suderman@wnco.com
+++++++++++++makefile++++++++++++++++
MAKEFILE = Makefile
CXX = aCC
INCDIR = -I$(XMLHOME)/include
CXXFLAGS = -AA +W740,749 $(INCDIR)
LDFLAGS =
SYSLIBS = -lstd_v2 -lCsup_v2
LIBS = ${XMLHOME}/lib/libxerces-c1_6_0.sl
OBJS = prismQWrite.o
##############
# Target Rules
##############
all: prismQWrite
prismQWrite: $(OBJS) $(MAKEFILE) ${LIBS}
@echo "Linking $@ ..."
$(CXX) -o $@ $(OBJS) $(LDFLAGS) $(LIBS) ${SYSLIBS}
@echo "done"
clean:
rm *.o
clobber: clean
rm prismQWrite core
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++=
========code==========================
#include <fstream>
#include <iostream>
using namespace std;
int main( int argc, char* argv[])
{
//ifstream file;
cout << "Program terminating..." << endl;
return 0;
}
=================================================================
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org