Dicom转换器 [英] Dicom converter

查看:94
本文介绍了Dicom转换器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我编译程序时,它正在工作.
但我无法运行它(链接错误).错误的类型为
错误15错误LNK2019:未解析的外部符号公共:虚拟类OFCondition __thiscall DcmFileFormat :: saveFile(char const *,enum E_TransferSyntax,enum E_EncodingType,enum E_GrpLenEncoding,enum E_PaddingEncoding,unsigned int,unsigned int,bool)"(? saveFile @ DcmFileFormat @@ UAE?AVOFCondition @@ PBDW4E_TransferSyntax @@ W4E_EncodingType @@ W4E_GrpLenEncoding @@ W4E_PaddingEncoding @@ II_N @ Z)在函数"public:bool __thiscall CxImageDCM :: SaveAsDCM(Char const *)"中引用@ QAE_NPBD @ Z)xImageDCM.obj DCMConverter



请帮帮我.



我已包含所有库文件.
错误中显示的函数在名为dcmdata.lib的库中.
我确定我已经包含了库

When I am compiling the program it is working.
but i can''t run it( linking error''s).the error''s are of type
Error 15 error LNK2019: unresolved external symbol "public: virtual class OFCondition __thiscall DcmFileFormat::saveFile(char const *,enum E_TransferSyntax,enum E_EncodingType,enum E_GrpLenEncoding,enum E_PaddingEncoding,unsigned int,unsigned int,bool)" (?saveFile@DcmFileFormat@@UAE?AVOFCondition@@PBDW4E_TransferSyntax@@W4E_EncodingType@@W4E_GrpLenEncoding@@W4E_PaddingEncoding@@II_N@Z) referenced in function "public: bool __thiscall CxImageDCM::SaveAsDCM(char const *)" (?SaveAsDCM@CxImageDCM@@QAE_NPBD@Z) xImageDCM.obj DCMConverter



Please help me.



I have included all the library files.
the function shown in the error is in a library called dcmdata.lib.
iam sure tht i have included the library

推荐答案

该错误是由于缺少符号所致,在您的情况下是方法DcmFileFormat::saveFile.
从签名中,我看到该方法是虚拟的:如果您编写了类DcmFileFormat,则可能忘记了实现该方法,该方法在基类中被声明为纯虚拟方法.
The error is due to a missing symbol, in your case the method DcmFileFormat::saveFile.
From the signature, I see that the method is virtual: if you have written the class DcmFileFormat, probably you forgot to implement that method, which is declared as pure virtual in the base class.


这篇关于Dicom转换器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆