返回信息流Linking...
arith_coderDlg.obj : error LNK2001: unresolved external symbol "void __cdecl print_results_bits(int)" (?print_results_bits@@YAXH@Z)
arith_coderDlg.obj : error LNK2001: unresolved external symbol "void __cdecl decode_bits(void)" (?decode_bits@@YAXXZ)
arith_coderDlg.obj : error LNK2001: unresolved external symbol "void __cdecl encode_bits(void)" (?encode_bits@@YAXXZ)
arith_coderDlg.obj : error LNK2001: unresolved external symbol "void __cdecl print_results_word(int)" (?print_results_word@@YAXH@Z)
arith_coderDlg.obj : error LNK2001: unresolved external symbol "void __cdecl decode_word(void)" (?decode_word@@YAXXZ)
arith_coderDlg.obj : error LNK2001: unresolved external symbol "void __cdecl encode_word(void)" (?encode_word@@YAXXZ)
arith_coderDlg.obj : error LNK2001: unresolved external symbol "void __cdecl decode_uints(void)" (?decode_uints@@YAXXZ)
arith_coderDlg.obj : error LNK2001: unresolved external symbol "void __cdecl encode_uints(void)" (?encode_uints@@YAXXZ)
arith_coderDlg.obj : error LNK2001: unresolved external symbol "void __cdecl decode_char(void)" (?decode_char@@YAXXZ)
arith_coderDlg.obj : error LNK2001: unresolved external symbol "void __cdecl encode_char(void)" (?encode_char@@YAXXZ)
Debug/arith_coder.exe : fatal error LNK1120: 10 unresolved externals
Error executing link.exe.
这是一条镜像帖。来源:北邮人论坛 / cpp / #44569同步于 2010/10/9
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
error LNK2001,在VC下调试通过的代码,加在MFC下就出错,大家帮
xurongfei
2010/10/9镜像同步3 回复
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
你没有把使用的LIB包含进来
arith_coderDlg.cpp文件里调用了print_results_bits(int)等函数,但是包含这些函数的LIB找不到
所以无法进行链接
【 在 xurongfei 的大作中提到: 】
: Linking...
: arith_coderDlg.obj : error LNK2001: unresolved external symbol "void __cdecl print_results_bits(int)" (?print_results_bits@@YAXH@Z)
: arith_coderDlg.obj : error LNK2001: unresolved external symbol "void __cdecl decode_bits(void)" (?decode_bits@@YAXXZ)
: ...................