如何解决链接器错误:未解析的外部符号 [英] How to solve linker errors: unresolved external symbol
本文介绍了如何解决链接器错误:未解析的外部符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我没有Unicode库,因此我尝试编译发行"版本.一切都编译到最后一步;演示.然后我得到了这些错误.我错过了什么吗?
I don''t have the Unicode library so I tried compiling the "Release" version. Everything compiled until the last step; the demo. Then I got these errors. Did I miss something?
Linking...
Creating library ../bin/demo.lib and object ../bin/demo.exp
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_cleanup_dcraw
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _htons@4
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_flip_index
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_gamma_lut
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_stretch
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_convert_to_rgb
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_fuji_rotate
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_recover_highlights
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_blend_highlights
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_median_filter
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_vng_interpolate
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_ahd_interpolate
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_ppg_interpolate
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_lin_interpolate
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_pre_interpolate
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_scale_colors
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_subtract
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_bad_pixels
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_remove_zeroes
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_merror
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_kodak_ycbcr_load_raw
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_identify
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_parse_command_line_options
cximage.lib(ximaraw.obj) : error LNK2001: unresolved external symbol _dcr_init_dcraw
../bin/demo.exe : fatal error LNK1120: 24 unresolved externals
Error executing link.exe.
demo.exe - 25 error(s), 0 warning(s)
这是文章论坛的链接: CxImage [
Here is the link to the article forum: CxImage[^]
推荐答案
它看来您需要链接到libDCR
库[ ^ ](我想是Ws2_32.lib
和htons
函数的Ws2_32.lib
).
:)
It looks like you need to link with thelibDCR
library [^] (and theWs2_32.lib
for thehtons
function, I suppose).
:)
在以下情况下可能会发生此问题:
1.缺少某些库.[确保所有库都包含在
中 其他包含库"].
2.确保您已为附加包含库"设置了路径.
3.确保您已包含相关的头"文件..
4.确保您使用的版本正确的dll用于发布"版本.
谢谢
Hi,
The problem can occur in the following cases:
1. Missing some library.[Make sure that all the Libraries are included in
"Additional Include Libraries"].
2. Make sure u have set path for Additional Include Libraries.
3. Make sure u have included concerned "header" files..
4. Make sure u are using the right version of dll for the "Release" build.
Thanks
标题声明后的顶部.
At the top after header declaration.
#pragma comment (lib, "fully qualified path to libdcr");
//其他放在system32中
可能会起作用
//else put in system32
May be this will work
这篇关于如何解决链接器错误:未解析的外部符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文