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_
[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED] referenced in function
__catch$?in
[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@@Z$0
[cc] Sax2Parser.obj : error LNK2001: unresolved external symbol __imp_?tr
[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED]
[cc] ParserFactory.obj : error LNK2019: unresolved external symbol __imp_
[EMAIL PROTECTED]@xercesc_2_7@@QBEPB_WXZ referenced in function __catch$?
[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@@Z$0
[cc] Sax2Parser.obj : error LNK2001: unresolved external symbol __imp_?ge
[EMAIL PROTECTED]@xercesc_2_7@@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)" ([EMAIL PROTECTED]
[EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED])
[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)" ([EMAIL PROTECTED]
[EMAIL PROTECTED]@@[EMAIL PROTECTED])
[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)
" ([EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED])
[cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::ignorableWhitespace(wchar_t
const * const,unsigned int)" ([EMAIL PROTECTED]@xercesc_2_7@@
[EMAIL PROTECTED])
[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)" ([EMAIL PROTECTED]@
xercesc_2_7@@[EMAIL PROTECTED])
[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)" ([EMAIL PROTECTED]@xerces
c_2_7@@[EMAIL PROTECTED])
[cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::endPrefixMapping(wchar_t co
nst * const)" ([EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED])
[cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::skippedEntity(wchar_t const
* const)" ([EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED])
[cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::comment(wchar_t const * con
st,unsigned int)" ([EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED])
[cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::endEntity(wchar_t const * c
onst)" ([EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED])
[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)" ([EMAIL PROTECTED]@xerc
esc_2_7@@[EMAIL PROTECTED])
[cc] Sax2Parser.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall xercesc_2_7::DefaultHandler::startEntity(wchar_t const *
const)" ([EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED])
[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)" ([EMAIL PROTECTED]@xercesc_2_7@@UAEXQB_
[EMAIL PROTECTED])
[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)" ([EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED])
[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)" ([EMAIL PROTECTED]@xerces
c_2_7@@[EMAIL PROTECTED])
[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
@[EMAIL PROTECTED]@@[EMAIL PROTECTED])
[cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?se
[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED] 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 &)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL
PROTECTED]
[EMAIL PROTECTED]@std@@[EMAIL PROTECTED]@2@@std@@@Z)
[cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?tr
[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED]@@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 &)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL
PROTECTED]@@UAEXA
[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@@Z)
[cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?ge
[EMAIL PROTECTED]@xercesc_2_7@@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 &)" ([EMAIL PROTECTED]
[EMAIL PROTECTED]@[EMAIL PROTECTED]@org@@[EMAIL PROTECTED]@[EMAIL
PROTECTED]@@V?$a
[EMAIL PROTECTED]@2@@std@@[EMAIL PROTECTED]@@@Z)
[cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?co
[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED] referenced in function
"protected
: bool __thiscall org::xmlBlaster::util::parser::Sax2Parser::caseCompare(wchar_t
const *,char const *)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL
PROTECTED]@@IAE
[EMAIL PROTECTED])
[cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?tr
[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED] referenced in function
"protected: bo
ol __thiscall org::xmlBlaster::util::parser::Sax2Parser::caseCompare(wchar_t con
st *,char const *)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL
PROTECTED]@@IAE_NPB
[EMAIL PROTECTED])
[cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?up
[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED] referenced in function
"protected: bool
__thiscall org::xmlBlaster::util::parser::Sax2Parser::caseCompare(wchar_t const
*,char const *)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL
PROTECTED]@@IAE_NPB_W
[EMAIL PROTECTED])
[cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?re
[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED] referenced in function
"protected: b
ool __thiscall org::xmlBlaster::util::parser::Sax2Parser::caseCompare(wchar_t co
nst *,char const *)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL
PROTECTED]@@IAE_NP
[EMAIL PROTECTED])
[cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?st
[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED] 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 " ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL
PROTECTED]
rg@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@2@@std@@[EMAIL
PROTECTED])
[cc] Sax2Parser.obj : error LNK2019: unresolved external symbol __imp_?re
[EMAIL PROTECTED]@xercesc_2_7@@[EMAIL PROTECTED] referenced in function
"public: static
void __cdecl org::xmlBlaster::util::parser::Sax2Parser::releaseXMLCh(wchar_t * *
)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED])
[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.