Compiler Error on Win64 (MSVS2008)

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
weisgerber
Posts: 6
Joined: Tue, 2009-02-24, 08:07
Location: München
Contact:

Compiler Error on Win64 (MSVS2008)

#1 Post by weisgerber »

C:\xip\xip-0.1.2\src\extern\dcmtk-3.5.4>nmake

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

[ 4%] Built target ofstd
[ 4%] Building CXX object src/extern/dcmtk-3.5.4/dcmdata/CMakeFiles/dcmdata.dir
/libsrc/mkdeftag.cxx.obj
mkdeftag.cxx
C:\xip\xip-0.1.2\src\extern\dcmtk-3.5.4\dcmdata\include\dcmtk/dcmdata/dcdict.h(8
8) : warning C4267: 'return' : conversion from 'size_t' to 'int', possible loss
of data
libsrc\mkdeftag.cxx(71) : warning C4267: 'initializing' : conversion from 'size_
t' to 'int', possible loss of data
libsrc\mkdeftag.cxx(117) : warning C4267: 'initializing' : conversion from 'size
_t' to 'int', possible loss of data
libsrc\mkdeftag.cxx(179) : error C2440: 'initializing' : cannot convert from 'LP
WSTR' to 'LPTSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-
style cast or function-style cast
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe' : return
code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\
VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.

C:\xip\xip-0.1.2\src\extern\dcmtk-3.5.4>

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

If you are really using the official DCMTK version 3.5.4 (which has been released end of 2005), you should be warned that this release has never been tested with Windows (64 bit) or VisualStudio 2008 ... You should probably first try, whether the current snapshot compiles (at least it should be easier).

Btw, compiling "mkdeftag.cxx" on a Windows system has also never been tested, and this file should also not be included in any of the CMake project files.

weisgerber
Posts: 6
Joined: Tue, 2009-02-24, 08:07
Location: München
Contact:

#3 Post by weisgerber »

Hmm strange, if I compile the original dmctk-3.5.4 it works (even with Win64/MSVS 2008). So I think Siemens changed something when releasing it together with XIP.

Thanks anyway, David

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest