[xsd-users] llink issues

Boris Kolpackov boris at codesynthesis.com
Tue Jul 22 16:43:56 EDT 2008


Hi Matt,

Matt Burnham <mburnham at gblsys.com> writes:

> except it's with my own  project rather than the examples (which compile 
> and link fine using the xerces-8.0 libs).
> 
> I'm using version 3.0 and the project was originally created with VS 
> 2003 then was converted to VS 2005.  When I link using the xerces-8.0 
> libraries, I get "unresolved external symbol" errors, but it links (and 
> runs) fine using the xerces-7.1 libraries.  I've checked and only have 
> the xerces libs that came with XSD and have the "Treat wchar_t as 
> Built-in Type" option set to "yes".

The fact that the examples compile and link fine means that the 
Xerces-C++ libraries are fine and there is something wrong with
the converted project. I can't think of anything off the top of
my head so I suggest that you try to see what is different in
terms of compiler/linker settings between your project and one
of the examples. Things that I would check first are:

1. Make sure the "Treat wchar_t as built-in type" option is set to
   the same value.

2. Make sure that the same Xerces-C++ library is linked and in the
   same way.

3. Check that the same generated code type is used (e.g., Debug/MT/DLL,
   etc).

If all this doesn't help then the last resort would be to re-create 
the VS 8.0 project from scratch instead of using the conversion tool.

Boris




More information about the xsd-users mailing list