Install problem

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Han Jong Chul
Posts: 13
Joined: Thu, 2008-03-13, 06:59

Install problem

#1 Post by Han Jong Chul »

Hello, I'm trying to use dcmtk.

dcmtk 3.5.4 with visual studio 2008

But while bulding, below error message occured.
I tried many times, but I couldn't sort it out.
What's the problem?

Error 1 fatal error LNK1104: cannot open file 'ofstd.lib' dcm2xml dcm2xml

Michael Onken
DCMTK Developer
Posts: 2072
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#2 Post by Michael Onken »

Hi,

did you follow all the steps in the INSTALL file coming with DCMTK? If not, please do so :-) It's about using CMake to generate the Visual Studio file. Open the created .sln file in Visual Studio and then build the ALL_BUILD target.

Regards,
Michael

Han Jong Chul
Posts: 13
Joined: Thu, 2008-03-13, 06:59

Thank you for reply, I'm going to be crazy

#3 Post by Han Jong Chul »

Hi,

Actually I' m confused to set the CMake Part.

I checked many times. And no error was there in the configur procedure.

But after building the sln. file, there were many error.

But I couldn't find any problem

Which part do I have to Change?

Han Jong Chul
Posts: 13
Joined: Thu, 2008-03-13, 06:59

Re: Thank you for reply, I'm going to be crazy

#4 Post by Han Jong Chul »

Han Jong Chul wrote:Hi,

Actually I' m confused to set the CMake Part.

I checked many times. And no error was there in the configur procedure.

But after building the sln. file, there were many error.

But I couldn't find any problem

Which part do I have to Change?
When I executed all-build

Han Jong Chul
Posts: 13
Joined: Thu, 2008-03-13, 06:59

Re: Thank you for reply, I'm going to be crazy

#5 Post by Han Jong Chul »

Han Jong Chul wrote:
Han Jong Chul wrote:Hi,

Actually I' m confused to set the CMake Part.

I checked many times. And no error was there in the configur procedure.

But after building the sln. file, there were many error.

But I couldn't find any problem

Which part do I have to Change?
When I executed all-build

Error 2 error LNK2005: __encode_pointer already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 3 error LNK2005: __decode_pointer already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 4 error LNK2005: __CrtSetCheckCount already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 5 error LNK2005: __invoke_watson already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 6 error LNK2005: __errno already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 7 error LNK2005: __configthreadlocale already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 8 error LNK2005: _exit already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 9 error LNK2005: __exit already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 10 error LNK2005: __cexit already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 11 error LNK2005: __amsg_exit already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 12 error LNK2005: __initterm_e already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 13 error LNK2005: __lock already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 14 error LNK2005: __unlock already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 15 error LNK2005: __XcptFilter already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 16 error LNK2005: __crt_debugger_hook already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 17 error LNK2005: _sprintf already defined in MSVCRTD.lib(MSVCR90D.dll) LIBCMTD.lib dcmmkdir
Error 18 error LNK2005: ___xi_a already defined in MSVCRTD.lib(cinitexe.obj) LIBCMTD.lib dcmmkdir
Error 19 error LNK2005: ___xi_z already defined in MSVCRTD.lib(cinitexe.obj) LIBCMTD.lib dcmmkdir
Error 20 error LNK2005: ___xc_a already defined in MSVCRTD.lib(cinitexe.obj) LIBCMTD.lib dcmmkdir

Michael Onken
DCMTK Developer
Posts: 2072
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#6 Post by Michael Onken »

Hi,

did you compile DCMTK and/or any libraries you also link to your project with different thread options? See FAQ #26.

Regards,
Michael

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests