[xsd-users] Support for VS2015 / VS2017
Brian Heaney
brian at inneroptic.com
Thu Dec 5 11:43:44 EST 2019
Hi Boris,
Thanks for the prompt reply. I have Xerces 3.2, built with VS2017. But I
get many of the following link errors when I use CodeSynthesis. It seems
that the .cxx/.hxx files that CodeSynthesis is generating are referencing
xercesc_3_1, yet I configured Visual Studio to link against my
xerces-c_3_2.lib file. Is there a way I can configure CodeSynthesis or
Visual Studio to use Xerces 3.2?
error LNK2019: unresolved external symbol "__declspec(dllimport) public:
static void * __cdecl xercesc_3_1::XMemory::operator new(unsigned int)"
(__imp_??2XMemory at xercesc_3_1@@SAPAXI at Z) referenced in function "public:
virtual class xercesc_3_1::BinInputStream * __thiscall
xsd::cxx::xml::sax::std_input_source::makeStream(void)const "
(?makeStream at std_input_source@sax at xml@cxx at xsd
@@UBEPAVBinInputStream at xercesc_3_1@@XZ)
error LNK2019: unresolved external symbol "__declspec(dllimport) public:
static void __cdecl xercesc_3_1::XMemory::operator delete(void *)"
(__imp_??3XMemory at xercesc_3_1@@SAXPAX at Z) referenced in function "public:
virtual void * __thiscall
xsd::cxx::xml::dom::ostream_format_target::`scalar deleting
destructor'(unsigned int)" (??_Gostream_format_target at dom@xml at cxx@xsd@
@UAEPAXI at Z)
error LNK2019: unresolved external symbol "__declspec(dllimport) public:
static void __cdecl xercesc_3_1::XMLPlatformUtils::Initialize(char const *
const,char const * const,class xercesc_3_1::PanicHandler * const,class
xercesc_3_1::MemoryManager * const)" (__imp_?Initialize at XMLPlatformUtils
@xercesc_3_1@@SAXQBD0QAVPanicHandler at 2@QAVMemoryManager at 2@@Z) referenced in
function "void __cdecl xsd::cxx::xml::initialize(void)" (?initialize at xml
@cxx at xsd@@YAXXZ)
Thanks,
Brian
On Wed, Dec 4, 2019 at 8:39 AM Boris Kolpackov <boris at codesynthesis.com>
wrote:
> Brian Heaney <brian at inneroptic.com> writes:
>
> > Do you have plans for supporting pre-built CodeSynthesis libraries for
> > Visual Studio 2015/2017? If not, we will need to build our own from
> source.
>
> The XSD runtime library (libxsd) is header-only and doesn't require
> building. Are you referring to Xerces-C++? If so, the best way is to
> grab the latest version from the project's website and build it from
> source:
>
> https://xerces.apache.org/xerces-c/
>
--
*Brian Heaney, CEO*
InnerOptic Technology, Inc
106A N. Churton Street Hillsborough, NC 27278
O: 919 732-2090 M: 919 450-7668
www.inneroptic.com
More information about the xsd-users
mailing list