[xsd-users] RE: link issues

Rizzuto, Raymond Raymond.Rizzuto at sig.com
Tue Jan 15 16:23:08 EST 2008


My bad - I set up the path for VC8/VS2005, but opened the project with
VC7/2003.  The link error goes away once I rebuilt under VC8.

 

________________________________

From: Rizzuto, Raymond 
Sent: Tuesday, January 15, 2008 4:03 PM
To: 'xsd-users at codesynthesis.com'
Subject: link issues

 

I downloaded the 3.0 version of xsd for windows with the installer
package.  I set up the include/lib/exe paths for Visual Studio 2005/VC8
up as specified.  I am able to compile the example tree code, but get
link errors.  For example, this is what happens when compiling the hello
project:

 

------ Rebuild All started: Project: hello, Configuration: Debug Win32
------

 

Deleting intermediate files and output files for project 'hello',
configuration 'Debug|Win32'.

xsd hello.xsd

Compiling...

hello.cxx

driver.cxx

Generating Code...

Linking...

hello.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall xercesc_2_7::InputSource::setSystemId(unsigned short
const * const)" (?setSystemId at InputSource@xercesc_2_7@@UAEXQBG at Z)

hello.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall xercesc_2_7::InputSource::setPublicId(unsigned short
const * const)" (?setPublicId at InputSource@xercesc_2_7@@UAEXQBG at Z)

hello.obj : error LNK2001: unresolved external symbol "public: virtual
void __thiscall xercesc_2_7::InputSource::setEncoding(unsigned short
const * const)" (?setEncoding at InputSource@xercesc_2_7@@UAEXQBG at Z)

hello.obj : error LNK2001: unresolved external symbol "public: virtual
unsigned short const * __thiscall
xercesc_2_7::InputSource::getSystemId(void)const "
(?getSystemId at InputSource@xercesc_2_7@@UBEPBGXZ)

hello.obj : error LNK2001: unresolved external symbol "public: virtual
unsigned short const * __thiscall
xercesc_2_7::InputSource::getPublicId(void)const "
(?getPublicId at InputSource@xercesc_2_7@@UBEPBGXZ)

hello.obj : error LNK2001: unresolved external symbol "public: virtual
unsigned short const * __thiscall
xercesc_2_7::InputSource::getEncoding(void)const "
(?getEncoding at InputSource@xercesc_2_7@@UBEPBGXZ)

hello.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static unsigned int __cdecl
xercesc_2_7::XMLString::stringLen(unsigned short const * const)"
(__imp_?stringLen at XMLString@xercesc_2_7@@SAIQBG at Z) referenced in
function "class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > __cdecl
xsd::cxx::xml::transcode<char>(unsigned short const *)"
(??$transcode at D@xml at cxx@xsd@@YA?AV?$basic_string at DU?$char_traits at D@std@@
V?$allocator at D@2@@std@@PBG at Z)

hello.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_7::XMLUni::fgXercesSchemaExternalNoNameSpaceSchemaLocation"
(__imp_?fgXercesSchemaExternalNoNameSpaceSchemaLocation at XMLUni@xercesc_2
_7@@2QBGB)

hello.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_7::XMLUni::fgXercesSchemaExternalSchemaLocation"
(__imp_?fgXercesSchemaExternalSchemaLocation at XMLUni@xercesc_2_7@@2QBGB)

hello.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_7::XMLUni::fgXercesUserAdoptsDOMDocument"
(__imp_?fgXercesUserAdoptsDOMDocument at XMLUni@xercesc_2_7@@2QBGB)

hello.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_7::XMLUni::fgXercesSchemaFullChecking"
(__imp_?fgXercesSchemaFullChecking at XMLUni@xercesc_2_7@@2QBGB)

hello.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_7::XMLUni::fgXercesSchema"
(__imp_?fgXercesSchema at XMLUni@xercesc_2_7@@2QBGB)

hello.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_7::XMLUni::fgDOMValidation"
(__imp_?fgDOMValidation at XMLUni@xercesc_2_7@@2QBGB)

hello.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_7::XMLUni::fgDOMWhitespaceInElementContent"
(__imp_?fgDOMWhitespaceInElementContent at XMLUni@xercesc_2_7@@2QBGB)

hello.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_7::XMLUni::fgDOMNamespaces"
(__imp_?fgDOMNamespaces at XMLUni@xercesc_2_7@@2QBGB)

hello.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_7::XMLUni::fgDOMEntities"
(__imp_?fgDOMEntities at XMLUni@xercesc_2_7@@2QBGB)

hello.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_7::XMLUni::fgDOMDatatypeNormalization"
(__imp_?fgDOMDatatypeNormalization at XMLUni@xercesc_2_7@@2QBGB)

hello.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: static unsigned short const * const
xercesc_2_7::XMLUni::fgDOMComments"
(__imp_?fgDOMComments at XMLUni@xercesc_2_7@@2QBGB)

hello.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: static class
xercesc_2_7::DOMImplementation * __cdecl
xercesc_2_7::DOMImplementationRegistry::getDOMImplementation(unsigned
short const *)"
(__imp_?getDOMImplementation at DOMImplementationRegistry@xercesc_2_7@@SAPA
VDOMImplementation at 2@PBG at Z) referenced in function "struct
xsd::cxx::xml::dom::auto_ptr<class xercesc_2_7::DOMDocument> __cdecl
xsd::cxx::xml::dom::parse<char>(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &,class
xercesc_2_7::DOMErrorHandler &,class xsd::cxx::xml::properties<char>
const &,unsigned long)"
(??$parse at D@dom at xml@cxx at xsd@@YA?AU?$auto_ptr at VDOMDocument@xercesc_2_7@@@
0123 at ABV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@AAV
DOMErrorHandler at xercesc_2_7@@ABV?$properties at D@123 at K@Z)

hello.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) protected: __thiscall
xercesc_2_7::InputSource::InputSource(unsigned short const * const,class
xercesc_2_7::MemoryManager * const)"
(__imp_??0InputSource at xercesc_2_7@@IAE at QBGQAVMemoryManager@1@@Z)
referenced in function "public: __thiscall
xsd::cxx::xml::sax::std_input_source::std_input_source<char>(class
std::basic_istream<char,struct std::char_traits<char> > &,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(??$?0D at std_input_source@sax at xml@cxx at xsd@@QAE at AAV?$basic_istream at DU?$cha
r_traits at D@std@@@std@@ABV?$basic_string at DU?$char_traits at D@std@@V?$alloca
tor at D@2@@6@@Z)

Debug/driver.exe : fatal error LNK1120: 20 unresolved externals

 

Build log was saved at "file://c:\Program Files\CodeSynthesis XSD
3.0\examples\cxx\tree\hello\Debug\BuildLog.htm"

hello - 21 error(s), 0 warning(s)

 

 

 

 

________________________________

Ray Rizzuto

Susqehanna International Group

(610)747-2336 (W)

(215)776-3780 (C)

 

 



IMPORTANT: The information contained in this email and/or its attachments is confidential. If you are not the intended recipient, please notify the sender immediately by reply and immediately delete this message and all its attachments.  Any review, use, reproduction, disclosure or dissemination of this message or any attachment by an unintended recipient is strictly prohibited.  Neither this message nor any attachment is intended as or should be construed as an offer, solicitation or recommendation to buy or sell any security or other financial instrument.  Neither the sender, his or her employer nor any of their respective affiliates makes any warranties as to the completeness or accuracy of any of the information contained herein or that this message or any of its attachments is free of viruses.



More information about the xsd-users mailing list