[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xmlblaster] Xerces 2.7 & Blaster 1.7



Marcel,

Was just setting up a brand new box for my project and thought I would
see how things run with Xerces 2.7 and xmlblaster 1.7.  It is running
on windows xp with VC++ 8 express 2005 (beta 2).  When it got to
linking the code it came up with a bunch of errors.  I saw that you
tested blaster 1.6 w/xerces 2.7 on linux and said it was successful,
so I assumed this would work too.  I checked the xerces website and it
doesn't look like there was anything there were any changes that would
prevent backwards compatibility, but I installed xerces 2.6, change
the PATH, and the two lines in build.properties to point to 2.6 and it
compiled fine.  Not sure if it is a problem with blaster, xerces, or
if I just forgot to set something up correctly, but thought I would
let you guys know.

Here is a copy of the output if it helps:
----------------------------------------------------------------------------------------------------------------------------------
       [cc] Starting link
       [cc]    Creating library xmlBlasterClient.lib and object xmlBlasterClient
.exp
       [cc] ParserFactory.obj : error LNK2019: unresolved external symbol __imp_
?transcode at XMLString at xercesc_2_7 at  at SAPADQB_W at Z referenced in function __catch$?in
itialize at ParserFactory at parser at util at xmlBlaster at org at  at QAEXAAVGlobal at 345 at  at Z$0
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol __imp_?tr
anscode at XMLString at xercesc_2_7 at  at SAPADQB_W at Z
       [cc] ParserFactory.obj : error LNK2019: unresolved external symbol __imp_
?getMessage at XMLException at xercesc_2_7 at  at QBEPB_WXZ referenced in function __catch$?
initialize at ParserFactory at parser at util at xmlBlaster at org at  at QAEXAAVGlobal at 345 at  at Z$0
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol __imp_?ge
tMessage at XMLException at xercesc_2_7 at  at QBEPB_WXZ
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual class xercesc_2_7::InputSource * __thiscall xercesc_2_7::DefaultHandler:
:resolveEntity(wchar_t const * const,wchar_t const * const)" (?resolveEntity at Def
aultHandler at xercesc_2_7 at  at UAEPAVInputSource at 2 at QB_W0 at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::notationDecl(wchar_t const
* const,wchar_t const * const,wchar_t const * const)" (?notationDecl at DefaultHand
ler at xercesc_2_7 at  at UAEXQB_W00 at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::unparsedEntityDecl(wchar_t
const * const,wchar_t const * const,wchar_t const * const,wchar_t const * const)
" (?unparsedEntityDecl at DefaultHandler at xercesc_2_7 at  at UAEXQB_W000 at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::ignorableWhitespace(wchar_t
 const * const,unsigned int)" (?ignorableWhitespace at DefaultHandler at xercesc_2_7 at  at 
UAEXQB_WI at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::processingInstruction(wchar
_t const * const,wchar_t const * const)" (?processingInstruction at DefaultHandler at 
xercesc_2_7 at  at UAEXQB_W0 at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::startPrefixMapping(wchar_t
const * const,wchar_t const * const)" (?startPrefixMapping at DefaultHandler at xerces
c_2_7 at  at UAEXQB_W0 at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::endPrefixMapping(wchar_t co
nst * const)" (?endPrefixMapping at DefaultHandler at xercesc_2_7 at  at UAEXQB_W at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::skippedEntity(wchar_t const
 * const)" (?skippedEntity at DefaultHandler at xercesc_2_7 at  at UAEXQB_W at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::comment(wchar_t const * con
st,unsigned int)" (?comment at DefaultHandler at xercesc_2_7 at  at UAEXQB_WI at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::endEntity(wchar_t const * c
onst)" (?endEntity at DefaultHandler at xercesc_2_7 at  at UAEXQB_W at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::startDTD(wchar_t const * co
nst,wchar_t const * const,wchar_t const * const)" (?startDTD at DefaultHandler at xerc
esc_2_7 at  at UAEXQB_W00 at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::startEntity(wchar_t const *
 const)" (?startEntity at DefaultHandler at xercesc_2_7 at  at UAEXQB_W at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::elementDecl(wchar_t const *
 const,wchar_t const * const)" (?elementDecl at DefaultHandler at xercesc_2_7 at  at UAEXQB_
W0 at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::attributeDecl(wchar_t const
 * const,wchar_t const * const,wchar_t const * const,wchar_t const * const,wchar
_t const * const)" (?attributeDecl at DefaultHandler at xercesc_2_7 at  at UAEXQB_W0000 at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::internalEntityDecl(wchar_t
const * const,wchar_t const * const)" (?internalEntityDecl at DefaultHandler at xerces
c_2_7 at  at UAEXQB_W0 at Z)
       [cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::externalEntityDecl(wchar_t
const * const,wchar_t const * const,wchar_t const * const)" (?externalEntityDecl
 at DefaultHandler at xercesc_2_7 at  at UAEXQB_W00 at Z)
       [cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?se
tEncoding at InputSource at xercesc_2_7 at  at UAEXQB_W at Z referenced in function "public: vi
rtual void __thiscall org::xmlBlaster::util::parser::Sax2Parser::parse(class std
::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > c
onst &)" (?parse at Sax2Parser at parser at util at xmlBlaster at org at  at UAEXABV?$basic_string at DU
?$char_traits at D at std at  at V?$allocator at D at 2 at  at std at  at  at Z)
       [cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?tr
anscode at XMLString at xercesc_2_7 at  at SA_NQBDQA_WIQAVMemoryManager at 2 at  at Z referenced in f
unction "public: virtual void __thiscall org::xmlBlaster::util::parser::Sax2Pars
er::parse(class std::basic_string<char,struct std::char_traits<char>,class std::
allocator<char> > const &)" (?parse at Sax2Parser at parser at util at xmlBlaster at org at  at UAEXA
BV?$basic_string at DU?$char_traits at D at std at  at V?$allocator at D at 2 at  at std at  at  at Z)
       [cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?ge
tSystemId at SAXParseException at xercesc_2_7 at  at QBEPB_WXZ referenced in function "prote
cted: class std::basic_string<char,struct std::char_traits<char>,class std::allo
cator<char> > __thiscall org::xmlBlaster::util::parser::Sax2Parser::getLocationS
tring(class xercesc_2_7::SAXParseException const &)" (?getLocationString at Sax2Par
ser at parser at util at xmlBlaster at org at  at IAE?AV?$basic_string at DU?$char_traits at D at std at  at V?$a
llocator at D at 2 at  at std at  at ABVSAXParseException at xercesc_2_7 at  at  at Z)
       [cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?co
mpareIString at XMLString at xercesc_2_7 at  at SAHQB_W0 at Z referenced in function "protected
: bool __thiscall org::xmlBlaster::util::parser::Sax2Parser::caseCompare(wchar_t
 const *,char const *)" (?caseCompare at Sax2Parser at parser at util at xmlBlaster at org at  at IAE
_NPB_WPBD at Z)
       [cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?tr
anscode at XMLString at xercesc_2_7 at  at SAPA_WQBD at Z referenced in function "protected: bo
ol __thiscall org::xmlBlaster::util::parser::Sax2Parser::caseCompare(wchar_t con
st *,char const *)" (?caseCompare at Sax2Parser at parser at util at xmlBlaster at org at  at IAE_NPB
_WPBD at Z)
       [cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?up
perCase at XMLString at xercesc_2_7 at  at SAXQA_W at Z referenced in function "protected: bool
 __thiscall org::xmlBlaster::util::parser::Sax2Parser::caseCompare(wchar_t const
 *,char const *)" (?caseCompare at Sax2Parser at parser at util at xmlBlaster at org at  at IAE_NPB_W
PBD at Z)
       [cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?re
plicate at XMLString at xercesc_2_7 at  at SAPA_WQB_W at Z referenced in function "protected: b
ool __thiscall org::xmlBlaster::util::parser::Sax2Parser::caseCompare(wchar_t co
nst *,char const *)" (?caseCompare at Sax2Parser at parser at util at xmlBlaster at org at  at IAE_NP
B_WPBD at Z)
       [cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?st
ringLen at XMLString at xercesc_2_7 at  at SAIQB_W at Z referenced in function "protected: clas
s std::basic_string<char,struct std::char_traits<char>,class std::allocator<char
> > __thiscall org::xmlBlaster::util::parser::Sax2Parser::getStringValue(wchar_t
 const * const,bool)const " (?getStringValue at Sax2Parser at parser at util at xmlBlaster at o
rg at  at IBE?AV?$basic_string at DU?$char_traits at D at std at  at V?$allocator at D at 2 at  at std at  at QB_W_N at Z)

       [cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?re
lease at XMLString at xercesc_2_7 at  at SAXPAPA_W at Z referenced in function "public: static
void __cdecl org::xmlBlaster::util::parser::Sax2Parser::releaseXMLCh(wchar_t * *
)" (?releaseXMLCh at Sax2Parser at parser at util at xmlBlaster at org at  at SAXPAPA_W at Z)
       [cc] xmlBlasterClient.dll : fatal error LNK1120: 27 unresolved externals

BUILD FAILED
D:\xmlBlaster\build.xml:2402: link failed with return code 1120

Total time: 1 minute 22 seconds
---------------------------------------------------------------------------------------------------------------------------------------------------



On a much smaller note you build.bat file needs some work.  On line 22
it states:

%JAVA_HOME%\bin\java.exe -Dant.home=. -classpath "%LOCALCLASSPATH%"
org.apache.tools.ant.Main %*


if java is installed to its default location at c:\program
files\java\java1.5....... then it tries to run c:\program with the
argument files\java etc, etc.

Quotes around the "%JAVA_HOME%\bin\java.exe" would make it more
universal and compatible with the java default install location.