Not able to compile - link error lnk2001
Moderator: Moderator Team
Not able to compile - link error lnk2001
I am trying to create a test application which would work similar to dcmcjpeg and dcmdjpeg. But the compilation failes with linking error Lnk2001. I added the following libraries for search.
dcmdatad.lib ofstdd.lib dcmjpegd.lib zlibd.lib ijg8d.lib ijg12d.lib ijg16d.lib
Here are the errors I got. Please help me in to fix this problem.
Compiling...
DcmCompress.cpp
Linking...
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall DicomImage::~DicomImage(void)" (??1DicomImage@@UAE@XZ)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: class DicomImage * __thiscall DicomImage::createMonochromeImage(double,double,double)const " (?createMonochromeImage@DicomImage@@QBEPAV1@NNN@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: __thiscall DicomImage::DicomImage(class DcmObject *,enum E_TransferSyntax,unsigned long,unsigned long,unsigned long)" (??0DicomImage@@QAE@PAVDcmObject@@W4E_TransferSynta
x@@KKK@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::getMinMaxValues(double &,double &,int)const " (?getMinMaxValues@DiMonoImage@@QBEHAAN0H@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setNoVoiTransformation(void)" (?setNoVoiTransformation@DiMonoImage@@QAEHXZ)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setMinMaxWindow(int)" (?setMinMaxWindow@DiMonoImage@@QAEHH@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setHistogramWindow(double)" (?setHistogramWindow@DiMonoImage@@QAEHN@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setRoiWindow(unsigned long,unsigned long,unsigned long,unsigned long,unsigned long)" (?setRoiWindow@DiMonoImage@@QAEHKKKKK@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setWindow(unsigned long)" (?setWindow@DiMonoImage@@QAEHK@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setWindow(double,double,char const *)" (?setWindow@DiMonoImage@@QAEHNNPBD@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setVoiLut(unsigned long)" (?setVoiLut@DiMonoImage@@QAEHK@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setPresentationLutShape(enum ES_PresentationLut)" (?setPresentationLutShape@DiMonoImage@@QAEHW4ES_PresentationLut@@@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiOverlay::hideAllPlanes(void)" (?hideAllPlanes@DiOverlay@@QAEHXZ)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: unsigned int __thiscall DiOverlay::getPlaneGroupNumber(unsigned int)const " (?getPlaneGroupNumber@DiOverlay@@QBEII@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall DiMonoImage::create6xxx3000OverlayData(unsigned char * &,unsigned int,unsigned int &,unsigned int &,unsigned long &,unsigned int)" (?create6xxx3
000OverlayData@DiMonoImage@@QAEKAAPAEIAAI1AAKI@Z)
Debug/DcmCompress.exe : fatal error LNK1120: 15 unresolved externals
Error executing link.exe.
dcmdatad.lib ofstdd.lib dcmjpegd.lib zlibd.lib ijg8d.lib ijg12d.lib ijg16d.lib
Here are the errors I got. Please help me in to fix this problem.
Compiling...
DcmCompress.cpp
Linking...
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: virtual __thiscall DicomImage::~DicomImage(void)" (??1DicomImage@@UAE@XZ)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: class DicomImage * __thiscall DicomImage::createMonochromeImage(double,double,double)const " (?createMonochromeImage@DicomImage@@QBEPAV1@NNN@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: __thiscall DicomImage::DicomImage(class DcmObject *,enum E_TransferSyntax,unsigned long,unsigned long,unsigned long)" (??0DicomImage@@QAE@PAVDcmObject@@W4E_TransferSynta
x@@KKK@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::getMinMaxValues(double &,double &,int)const " (?getMinMaxValues@DiMonoImage@@QBEHAAN0H@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setNoVoiTransformation(void)" (?setNoVoiTransformation@DiMonoImage@@QAEHXZ)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setMinMaxWindow(int)" (?setMinMaxWindow@DiMonoImage@@QAEHH@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setHistogramWindow(double)" (?setHistogramWindow@DiMonoImage@@QAEHN@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setRoiWindow(unsigned long,unsigned long,unsigned long,unsigned long,unsigned long)" (?setRoiWindow@DiMonoImage@@QAEHKKKKK@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setWindow(unsigned long)" (?setWindow@DiMonoImage@@QAEHK@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setWindow(double,double,char const *)" (?setWindow@DiMonoImage@@QAEHNNPBD@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setVoiLut(unsigned long)" (?setVoiLut@DiMonoImage@@QAEHK@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiMonoImage::setPresentationLutShape(enum ES_PresentationLut)" (?setPresentationLutShape@DiMonoImage@@QAEHW4ES_PresentationLut@@@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: int __thiscall DiOverlay::hideAllPlanes(void)" (?hideAllPlanes@DiOverlay@@QAEHXZ)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: unsigned int __thiscall DiOverlay::getPlaneGroupNumber(unsigned int)const " (?getPlaneGroupNumber@DiOverlay@@QBEII@Z)
dcmjpegd.lib(djcodece.obj) : error LNK2001: unresolved external symbol "public: unsigned long __thiscall DiMonoImage::create6xxx3000OverlayData(unsigned char * &,unsigned int,unsigned int &,unsigned int &,unsigned long &,unsigned int)" (?create6xxx3
000OverlayData@DiMonoImage@@QAEKAAPAEIAAI1AAKI@Z)
Debug/DcmCompress.exe : fatal error LNK1120: 15 unresolved externals
Error executing link.exe.
Thanks and Regards
Ravi Kumar
Ravi Kumar
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
See also FAQ #27.
-
- Posts: 31
- Joined: Thu, 2010-09-02, 10:03
There is an error in the picture displayed here :
http://support.dcmtk.org/wiki/_media/dc ... encies.png
dcmsign does not exist. What exists is dcmdsig. Is this the normal correction?
http://support.dcmtk.org/wiki/_media/dc ... encies.png
dcmsign does not exist. What exists is dcmdsig. Is this the normal correction?
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
-
- Posts: 31
- Joined: Thu, 2010-09-02, 10:03
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
The library has been renamed back in 2003 from "dcmsign" to "dcmdsig" ...
Who is online
Users browsing this forum: No registered users and 1 guest