generate sr from xml

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Tsunamis
Posts: 31
Joined: Wed, 2005-05-04, 17:07

generate sr from xml

#1 Post by Tsunamis »

Hi,

I try to generate sr from xml using your xml2sr code sample.
But I cannot make my way through that : linking problems make it impossible.

links problem are mainly coming from redefinition from msvcprtd.lib(MSVCP60D.dll) and MSVCRTD.lib(MSVCRTD.dll)...
if I exclude them, more errors come.

if I set my project as debug multithreaded DLL, i only have 2 errors at linking :

Code: Select all

xml2dsr.obj : error LNK2001: unresolved external symbol _xmlCleanupParser
xml2dsr.obj : error LNK2001: unresolved external symbol _xmlInitParser
I compiled DCMTK in debug multithreaded DLL mode because I make a DLL from it...

Any idea to get those two errors out? I look for that for 2 days and I start to be a bit depressed ...
Last edited by Tsunamis on Tue, 2011-02-01, 14:39, edited 2 times in total.

Tsunamis
Posts: 31
Joined: Wed, 2005-05-04, 17:07

#2 Post by Tsunamis »

Note that if I include the lib from libxml (iconv-d and libxml2_d) things are worse since it conflicts with libcmtd.lib...
Last edited by Tsunamis on Tue, 2011-02-01, 14:39, edited 2 times in total.

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1461
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#3 Post by Marco Eichelberg »

You need to link against the libxml libraries, and these have to be generated using the same code generation options. Nopbody said that a developer's life is always easy :wink:

Tsunamis
Posts: 31
Joined: Wed, 2005-05-04, 17:07

#4 Post by Tsunamis »

Aaaargg ;)

Well, i downloaded all these and get some errors compiling the lib with iconv.

...
Has anybody already compiled a binary from this sample and generated an exe file? I'd be glad to have it as is... it would spare me a lot of time...

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest