after the download of dcmtk 3.6.0 from your web page (ftp://dicom.offis.de/pub/dicom/offis/so ... -3.6.0.zip), I built the DCMTK project using cmake. I compiled the subprojects "ALL_BUILD" and "INSTALL". After that, the folder "C:\Program Files (x86)\DCMTK" with the subfolder "bin", "etc", "include", "lib" and "share" was created. I guess, that is the appropriate structure, right?
So, I included the source files (folder "include") and the library "dcmdata.lib" in my project.
I wrote the following code in my project:
Code: Select all
#include "dcmtk\config\osconfig.h"
#include "dcmtk\dcmdata\dctk.h"
int main()
{
OFCondition status;
DcmFileFormat fileFormat;
status = fileFormat.loadFile("test.dcm");
if(status.good())
std::cout << "File is loaded" << std::endl;
else
std::cout << "File not loaded" << std::endl;
return EXIT_SUCCESS;
}
error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall OFString::OFString(char const *)" (??0OFString@@QAE@PBD@Z)".
I have seen in FAQ #27, that several external libraries are necessary. Where can I found this libraries? Or is there another solution for this problem?
Thanks.
Best regards,
Oliver