DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Mon, 2017-05-29, 10:43

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Tue, 2010-05-25, 20:35 
Offline

Joined: Fri, 2010-05-21, 01:38
Posts: 8
Most of the DCMTK library works for me except for the new DCMRT module.

When I try to compile a project that links against dcmrt I get linker errors that all seem to do with "log4cplus."

Additionally, I get the infamous "warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library"

The LNK4098 error only happens if I use the new DCMRT module. I can use the rest of the module without such warnings or errors.


Top
 Profile  
 
 Post subject:
PostPosted: Tue, 2010-05-25, 20:46 
Offline
ICSMED DICOM Services
ICSMED DICOM Services

Joined: Fri, 2004-10-29, 21:38
Posts: 2217
Location: Oldenburg, Germany
Which version of DCMRT are you using? As far as I remember, I tried all pre-releases of DCMRT with VS 2008 Express on Windows XP (32-bit). Did you change any of the compiler flags in CMakeLists.txt?


Top
 Profile  
 
 Post subject:
PostPosted: Tue, 2010-05-25, 20:59 
Offline

Joined: Fri, 2010-05-21, 01:38
Posts: 8
It was version from May 11th.

I'll outline the procedure I used.
First I changed all references of "/MT" in CMakeLists.txt to "/MD"
Then I used cmake gui to remove the optional modules(libpng, etc) and generated a VS 2008 project.
I used Build All in VS 2008 and then used the INSTALL project.


Top
 Profile  
 
 Post subject:
PostPosted: Tue, 2010-05-25, 21:02 
Offline
ICSMED DICOM Services
ICSMED DICOM Services

Joined: Fri, 2004-10-29, 21:38
Posts: 2217
Location: Oldenburg, Germany
Hmm, but the original CMake settings work without any problems? Btw, there should be no need to remove the optional modules like libpng since for the DCMRT package they are disabled by default.


Top
 Profile  
 
 Post subject:
PostPosted: Tue, 2010-05-25, 21:48 
Offline

Joined: Fri, 2010-05-21, 01:38
Posts: 8
Ah, I found one problem. I didn't link against oflog.lib.
After linking against oflog.lib I have some further errors all relating to "ntelogap.obj."
I'm guessing there is an NT Event that I am not linking to. Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Wed, 2010-05-26, 08:24 
Offline
ICSMED DICOM Services
ICSMED DICOM Services

Joined: Fri, 2004-10-29, 21:38
Posts: 2217
Location: Oldenburg, Germany
I compiled the complete DCMRT package with "/MD" and got no linker errors or warnings, so I guess that your project files are the reason for the problems.

Btw, there is a new CMake option OVERWRITE_COMPILER_FLAGS that can be used to avoid the hard-coded specification of the compiler/linker flags.


Top
 Profile  
 
 Post subject:
PostPosted: Mon, 2010-05-31, 21:51 
Offline

Joined: Fri, 2010-05-21, 01:38
Posts: 8
I can now build the latest dcmtk. I had to change a linker parameter to inherit dependencies.
Unfortunately, I can't instantiate any class in the dcmrt module. Anytime I do, I get this error:
Code:
STATUS_STACK_BUFFER_OVERRUN encountered


Or the program becomes unresponsive and I have to manually terminate.

The other dcmtk classes that are not a part of the dcmrt module seem to work just fine.

BTW, This is using C++/CLI.


Top
 Profile  
 
 Post subject:
PostPosted: Tue, 2010-06-01, 17:37 
Offline

Joined: Fri, 2010-05-21, 01:38
Posts: 8
I tried instantiating a DRTPlanIOD object in a native visual C++ project. The program immediately crashes much like the C++/CLI project but with an access violation error.
Again, classes from the other modules like DcmFileFormat instantiate just fine.


Top
 Profile  
 
 Post subject:
PostPosted: Wed, 2010-06-02, 09:26 
Offline
ICSMED DICOM Services
ICSMED DICOM Services

Joined: Fri, 2004-10-29, 21:38
Posts: 2217
Location: Oldenburg, Germany
Unfortunately, I have no idea what the reason for your problems is since it works without problems for the sample programs "drtdump" and "drttest" ...

What does the debugger say?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group