[Dcmlib] compile problem in windows

Jean-Pierre ROUX jean-pierre.roux at creatis.insa-lyon.fr
Thu Oct 25 22:07:34 CEST 2007


At 15:33 -0400 25/10/07, Greg Book wrote:
>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?

Hi, Greg,

We probabely made a mistake some where...

The CVS version compiles, links and runs on Linux, (gcc compiler), 
Windows (MSVC 7), and MacOS.
It doesn't compile  with  MSVC 6, Borland compiler and Solaris ...

We should fix that,  but, right now, we have no computer to do it.

We never were reported about a  link problem.
Thank you for doing it.
(It think it will be esaier for me to have acces to a PC with  VC++2005)

We never wrote a step by step 'How to' compile.
It's so easy using CMake (just like you did...)

Jean-Pierre





>
>-Greg
>
>1>Linking...
>1>AnonymizeDialog.obj : error LNK2019: unresolved external symbol 
>"protected: __thiscall GDCM_NAME_SPACE::File::File(void)" 
>(??0File at GDCM_NAME_SPACE@@IAE at XZ) referenced in function "public: 
>static class GDCM_NAME_SPACE::File * __cdecl 
>GDCM_NAME_SPACE::File::New(void)" 
>(?New at File@GDCM_NAME_SPACE@@SAPAV12 at XZ)
>1>ImageInformationDialog.obj : error LNK2001: unresolved external 
>symbol "protected: __thiscall GDCM_NAME_SPACE::File::File(void)" 
>(??0File at GDCM_NAME_SPACE@@IAE at XZ)
>1>LoadFile.obj : error LNK2001: unresolved external symbol 
>"protected: __thiscall GDCM_NAME_SPACE::File::File(void)" 
>(??0File at GDCM_NAME_SPACE@@IAE at XZ)
>1>AnonymizeDialog.obj : error LNK2019: unresolved external symbol 
>"public: void __thiscall 
>GDCM_NAME_SPACE::File::AnonymizeNoLoad(void)" 
>(?AnonymizeNoLoad at File@GDCM_NAME_SPACE@@QAEXXZ) referenced in 
>function "public: void __thiscall 
>AnonymizeDialog::OnAnonymizeClick(class wxCommandEvent &)" 
>(?OnAnonymizeClick at AnonymizeDialog@@QAEXAAVwxCommandEvent@@@Z)
>...
>etc
>...
>1>LoadFile.obj : error LNK2019: unresolved external symbol "public: 
>float __thiscall GDCM_NAME_SPACE::File::GetYOrigin(void)" 
>(?GetYOrigin at File@GDCM_NAME_SPACE@@QAEMXZ) referenced in function 
>"private: int __thiscall LoadFile::GetFileInfo(class wxString)" 
>(?GetFileInfo at LoadFile@@AAEHVwxString@@@Z)
>1>LoadFile.obj : error LNK2019: unresolved external symbol "public: 
>float __thiscall GDCM_NAME_SPACE::File::GetZOrigin(void)" 
>(?GetZOrigin at File@GDCM_NAME_SPACE@@QAEMXZ) referenced in function 
>"private: int __thiscall LoadFile::GetFileInfo(class wxString)" 
>(?GetFileInfo at LoadFile@@AAEHVwxString@@@Z)
>1>.\Release/MIView.exe : fatal error LNK1120: 28 unresolved externals
>
>
>_______________________________________________
>Dcmlib mailing list
>Dcmlib at creatis.insa-lyon.fr
>http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib

  Jean-Pierre ROUX
   CREATIS - CNRS UMR 5220, INSERM U 630
   Laboratoire de Radiologie Experimentale
   Hopital Cardiologique
   28 Avenue du Doyen LEPINE
   B.P. Lyon-Montchat
   69394 Lyon Cedex 03
 
   Tel      : (+33) 04 72 35 74 12
   Fax      : (+33) 04 72 68 49 16
   URL      : http://www.creatis.univ-lyon1.fr/~jpr
   e-mail   : jpr at creatis.univ-lyon1.fr
								   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3600 bytes
Desc: not available
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20071025/91c5c90f/attachment.bin>


More information about the Dcmlib mailing list