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=5596>.
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=5596

xerces shared library clashes with stdc++ ostream

           Summary: xerces shared library clashes with stdc++ ostream
           Product: Xerces-C++
           Version: 1.6.0
          Platform: HP
        OS/Version: HP-UX
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Miscellaneous
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.
[EMAIL PROTECTED]

+++++++++++++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;
}
=================================================================

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to