On Wed, Jan 23, 2002 at 10:29:01AM -0700, Jason E. Stewart wrote: > It's hard for me to say since I don't have your Xerces.C file, maybe > you can post a 20 line chunk around that line.
See below. I have also put the whole thing on http://www.decisionsoft.com/pdw/Xerces.C > Given how far down that seems to be (my current Xerces.C file only has > 65k lines) you're probably in SWIG_init which should have a line like: > > char *file = (char *) __FILE__; That's the problem - that line never gets inserted. > What version of SWIG are you using? > > $ swig -version > > SWIG Version 1.3.10u-20011030-1159 > > Since I've been contributing a bit to the SWIG Perl module, I compile > it from CVS, but I haven't updated in quite a while. For me to help > you I'm going to have to use the same version. I'm assuming that you > downloaded 1.3.10 off the WWW site? SWIG Version 1.3.10u-20020123-1657 This is from the SWIG website. cheers, Paul XS(SWIG_init) { dXSARGS; int i; for (i = 0; swig_types_initial[i]; i++) { swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); } /*Install commands */ for (i = 0; swig_commands[i].name; i++) { newXS((char*) swig_commands[i].name,swig_commands[i].wrapper, (char*)__FILE__); // we create the global transcoder for UTF-8 to UTF-16 XMLTransService::Codes failReason; XMLPlatformUtils::Initialize(); // first we must create the transservice UTF8_ENCODING = XMLString::transcode("UTF-8"); UTF8_TRANSCODER = XMLPlatformUtils::fgTransService->makeNewTranscoderFor(UTF8_ENCODING, failReason, 1024); if (! UTF8_TRANSCODER) { croak("ERROR: XML::Xerces: INIT: Could not create UTF-8 transcoder"); } ISO_8859_1_ENCODING = XMLString::transcode("ISO-8859-1"); ISO_8859_1_TRANSCODER = XMLPlatformUtils::fgTransService->makeNewTranscoderFor(ISO_8859_1_ENCODING, failReason, 1024); if (! ISO_8859_1_TRANSCODER) { croak("ERROR: XML::Xerces: INIT: Could not create ISO-8859-1 transcoder"); } newXS((char *) "XML::Xercesc::IDOM_Node_operator_equal_to", _wrap_IDOM_Node_operator_equal_to, file); newXS((char *) "XML::Xercesc::IDOM_Node_operator_not_equal_to", _wrap_IDOM_Node_operator_not_equal_to, file); } /*Install variables */ [...] -- Paul Warren, Client Services DecisionSoft Ltd. Telephone: +44-1865-203192 http://www.decisionsoft.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
