Project

General

Profile

Visual Studio 6 (VC6)

For Visual Studio 6, there is one thing to consider. VC6 does not (officially) support .cc as common extension for C++ source code files. However, this is the filename extension DCMTK uses. If you try to run CMake and compile based on the resulting Visual Studio project files, you may encounter errors like these:

CMake Error: Unable to find the executable at any of: 
  D:/Program Files/dcmtk-3.6.0/CMakeTmp/Char/CMakeFiles/CMakeTmp/cmTryCompileExec.exe 
  D:/Program Files/dcmtk-3.6.0/CMakeTmp/Char/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe 
  D:/Program Files/dcmtk-3.6.0/CMakeTmp/Char/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe
But do not worry, you can fix that. There are three possibilities:
  1. Either rename all .cc files to .cxx. This can be done by a little script that comes with DCMTK within the dcmtk/config directory and is called changext. However, it only runs on UNIX-like systems or cygwin! If you have access to such a system, copy DCMTK there and call in its root folder: ”config/changext cxx”. Then use the resulting DCMTK source code tree to continue on Windows.
  2. You may also rename all .cc files manually to .cxx. In that case, be sure to change also the .cc occurences within GenerateDCMTKConfigure.cmake.
  3. There is a way proposed by Microsoft to let VC6 recognize the .cc extension. However, we did not try that (give us feedback if you did!).