<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000066">
<font size="-1"><font face="Helvetica, Arial, sans-serif">I was able to
successfully compile gdcm using CMake, and then VC++2005. (the latest
version 1.3.2 downloaded from the gdcm website) I tried creating static
libs and non-static libs. Both compiled and created the .lib and .dll
files. When I tried to compile either of the libs into my program, I
get lots of link errors. I've successfully compiled my program before
using the 1.2.2 version of gdcm. What might be going on? I'm also
wondering if there is a step by step tutorial on how to compile gdcm
and use the lib in programs?<br>
<br>
-Greg<br>
<br>
1>Linking...<br>
1>AnonymizeDialog.obj : error LNK2019: unresolved external symbol
"protected: __thiscall GDCM_NAME_SPACE::File::File(void)"
(??0File@GDCM_NAME_SPACE@@IAE@XZ) referenced in function "public:
static class GDCM_NAME_SPACE::File * __cdecl
GDCM_NAME_SPACE::File::New(void)"
(?New@File@GDCM_NAME_SPACE@@SAPAV12@XZ)<br>
1>ImageInformationDialog.obj : error LNK2001: unresolved external
symbol "protected: __thiscall GDCM_NAME_SPACE::File::File(void)"
(??0File@GDCM_NAME_SPACE@@IAE@XZ)<br>
1>LoadFile.obj : error LNK2001: unresolved external symbol
"protected: __thiscall GDCM_NAME_SPACE::File::File(void)"
(??0File@GDCM_NAME_SPACE@@IAE@XZ)<br>
1>AnonymizeDialog.obj : error LNK2019: unresolved external symbol
"public: void __thiscall GDCM_NAME_SPACE::File::AnonymizeNoLoad(void)"
(?AnonymizeNoLoad@File@GDCM_NAME_SPACE@@QAEXXZ) referenced in function
"public: void __thiscall AnonymizeDialog::OnAnonymizeClick(class
wxCommandEvent &)"
(?OnAnonymizeClick@AnonymizeDialog@@QAEXAAVwxCommandEvent@@@Z)<br>
...<br>
etc<br>
...<br>
1>LoadFile.obj : error LNK2019: unresolved external symbol "public:
float __thiscall GDCM_NAME_SPACE::File::GetYOrigin(void)"
(?GetYOrigin@File@GDCM_NAME_SPACE@@QAEMXZ) referenced in function
"private: int __thiscall LoadFile::GetFileInfo(class wxString)"
(?GetFileInfo@LoadFile@@AAEHVwxString@@@Z)<br>
1>LoadFile.obj : error LNK2019: unresolved external symbol "public:
float __thiscall GDCM_NAME_SPACE::File::GetZOrigin(void)"
(?GetZOrigin@File@GDCM_NAME_SPACE@@QAEMXZ) referenced in function
"private: int __thiscall LoadFile::GetFileInfo(class wxString)"
(?GetFileInfo@LoadFile@@AAEHVwxString@@@Z)<br>
1>.\Release/MIView.exe : fatal error LNK1120: 28 unresolved externals<br>
<br>
</font></font>
</body>
</html>