[xsd-users] link issues

Rizzuto, Raymond Raymond.Rizzuto at sig.com
Tue Jan 15 16:51:42 EST 2008


The space in the file name was the issue!  Thanks.  I was afraid the
schema was too complicated.  Glad that isn't the case - now I can start
using the generated code.

-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Tuesday, January 15, 2008 4:20 PM
To: Rizzuto, Raymond
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] link issues

Hi Raymond,

Rizzuto, Raymond <Raymond.Rizzuto at sig.com> writes:

> 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:
>
> [...]
>
> 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)

Do you use the Xerces-C++ headers/libraries that came with the XSD
installer or did you build Xerces-C++ yourself?

If you are using Xerces-C++ that came with XSD, then one of the
following can cause the above link errors:

 1. There is another copy of Xerces-C++ headers and/or libraries
    present on your system and a wrong library gets linked instead
    of the one provided by XSD.

 2. You have changed how Visual Studio treats the wchar_t type
    in the hello project. To check that, open the "Project
    Properties" dialog in the "C/C++ -> Language" tab. By default
    the XSD example projects have the "Treat wchar_t as Built-in
    Type" option set to "yes".

If you are using your own copy of Xerces-C++ then the most likely
cause of these errors is the mismatch of the wchar_t handling
options between the Xerces-C++ libraries and the XSD example
projects.

Boris


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