Hi,<br><br>I just installed GDCM library on my windows XP Pro X64 workstation and compiled it with CMAKE and later built the generated solution using VS 2005 Pro. All this went fine without any errors. However I am not sure what my 
cmakelists.txt file should look like to test a simple example. I created a cmakelists.txt file which looks like-<br>--------<br>PROJECT(gdcmex1)<br><br>FIND_PACKAGE(GDCM)<br>IF(GDCM_FOUND)<br>    INCLUDE(${GDCM_USE_FILE})
<br>ENDIF(GDCM_FOUND)<br><br>ADD_EXECUTABLE(gdcmex1 myex1.cpp)<br><br># I am not sure about the following line, what other libraries do I need to specify here?<br>TARGET_LINK_LIBRARIES(gdcmex1)<br>----------<br><br>My test example code looks like-
<br>----------------------<br>/* myex1.cpp*/<br>#include "gdcmFile.h"<br>#include "gdcmFileHelper.h"<br>#include <iostream><br><br>using namespace std;<br><br>int main(int argc, char *argv[])<br>

{  <br>    int i=0;<br>    cout<<i<<endl;<br>    std::string fileName;<br><br>    gdcm::File *e1;<br>    e1=gdcm::File::New();<br><br>    return 0;<br>}<br>--------------------<br>Visual Studio 2005 Pro gives me the following errors on this simple example.
<br><br>-------<br>1>myex1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class gdcm::File * __cdecl gdcm::File::New(void)" (__imp_?New@File@gdcm@@SAPAV12@XZ) referenced in function _main
<br>1>Debug\gdcmex1.exe : fatal error LNK1120: 1 unresolved externals<br>-------<br><br>Can anyone please guide me as to what I am missing here and how to fix it?<br><br>Thanks in advance,<br>Ashish<br><br>