dcmtk提示无法解析的外部符号(unresolved external symbol)的解决方法
来源:互联网 发布:中国软件邮箱地址 编辑:程序博客网 时间:2024/05/21 13:54
参考dcmtk官方论坛的这个帖子http://forum.dcmtk.org/viewtopic.php?t=36
The DCMTK libraries have the following internal dependencies (modules introduced with DCMTK 3.6.0 are not listed here):
dcmdata : ofstd
dcmimage : dcmimgle, dcmdata, ofstd
dcmimgle : dcmdata, ofstd
dcmjpeg : ijg8, ijg12, ijg16, dcmimage, dcmimgle, dcmdata, ofstd
dcmnet : dcmdata, ofstd
dcmpstat : dcmimage, dcmimgle, dcmsign, dcmsr, imagectn, dcmtls, dcmnet, dcmdata, ofstd
dcmsign : dcmdata, ofstd
dcmsr : dcmdata, ofstd
dcmtls : dcmnet, dcmdata, ofstd
dcmwlm : dcmnet, dcmdata, ofstd
imagectn/dcmqrdb : dcmnet, dcmdata, ofstd
In addition to the standard libraries, most DCMTK applications have to be linked against the "netapi32" and "wsock32" libraries, even if they contain no networking code. Several external libraries such as zlib, OpenSSL etc. might also be needed. See the INSTALL file for details.
按照正确的依赖顺序把库文件加入 项目属性 -> 链接器 -> 输入 -> 附加依赖项 之后,编译通过,可以运行。
The DCMTK libraries have the following internal dependencies (modules introduced with DCMTK 3.6.0 are not listed here):
dcmdata : ofstd
dcmimage : dcmimgle, dcmdata, ofstd
dcmimgle : dcmdata, ofstd
dcmjpeg : ijg8, ijg12, ijg16, dcmimage, dcmimgle, dcmdata, ofstd
dcmnet : dcmdata, ofstd
dcmpstat : dcmimage, dcmimgle, dcmsign, dcmsr, imagectn, dcmtls, dcmnet, dcmdata, ofstd
dcmsign : dcmdata, ofstd
dcmsr : dcmdata, ofstd
dcmtls : dcmnet, dcmdata, ofstd
dcmwlm : dcmnet, dcmdata, ofstd
imagectn/dcmqrdb : dcmnet, dcmdata, ofstd
In addition to the standard libraries, most DCMTK applications have to be linked against the "netapi32" and "wsock32" libraries, even if they contain no networking code. Several external libraries such as zlib, OpenSSL etc. might also be needed. See the INSTALL file for details.
大意就是说dcmtk的库文件之间是有依赖关系的,所以在依赖的时候必须按照一定的顺序来。
上面冒号左边的库文件就是依赖于冒号右边的库文件的。
值得注意的是dcmjpeg这一行,可以看到它依赖于ijg8, ijg12, ijg16, dcmimage, dcmimgle, dcmdata, ofstd。
但是!我们看到上面两行,dcmimage是依赖于dcmimgle的。
所以,如果要添加dcmjpeg,正确的顺序应该是:oflog.lib;dcmdata.lib;ijg8.lib;ijg12.lib; ijg16.lib;dcmimgle.lib;dcmimage.lib;dcmjpeg.lib;。加粗的地方的顺序和上面是反过来的
若要添加别的库文件以此类推
按照正确的依赖顺序把库文件加入 项目属性 -> 链接器 -> 输入 -> 附加依赖项 之后,编译通过,可以运行。
- dcmtk提示无法解析的外部符号(unresolved external symbol)的解决方法
- unresolved external symbol “symbol”(不确定的外部“符号”)。
- error LNK2019: unresolved external symbol / error LNK2001: 无法解析的外部符号
- 无法解析的外部符号 DrvLib_MapIoSpace unresolved symbol
- 解决vc C++ 调用 C 函数时unresolved external symbol " __cdecl 。。。无法解析的外部符合
- 提示出现unresolved external symbol _main的解决方法
- unresolved external symbol 无法解析
- LNK2001无法解析的外部符号“symbol”
- unresolved external symbol _WinMain@16的解决方法
- unresolved external symbol _WinMain@16的解决方法
- unresolved external symbol _WinMain@16的解决方法
- unresolved external symbol _WinMain@16的解决方法
- unresolved external symbol _WinMain@16的解决方法
- error LNK2019:unresolved external symbol的解决方法
- unresolved external symbol _WinMain@16的解决方法
- unresolved external symbol _WinMain@16的解决方法
- 编译提示无法解析的外部符号
- VS2010 提示无法解析的外部符号
- 06-相对布局和绝对布局
- 我或将离开技术的世界, 踏上新的旅程
- centos安装LAMP
- .mysqladmin: Can't turn off logging; error: 'Access denied; you need the SUPER privilege for this op
- 八月的日子
- dcmtk提示无法解析的外部符号(unresolved external symbol)的解决方法
- android上gl纹理资源路径的问题
- PHP中try{}catch{}的具体用法详解
- 面试题之——对包含汉字的字符串截取指定字节数
- 14,标准C
- Android 使用SAX解析XML
- Mysql 在linux下的安装以及卸载(redhat)
- Eclipse无法识别(手机)设备的解决方案
- 最长公共子串(连续)问题