0
我試圖在視覺工作室2015中使用Zbar庫時遇到問題。 我已經使用鏈接中的ZBar 0.10 Windows安裝程序安裝了庫:http://zbar.sourceforge.net/download.htm。Zbar在vs2015鏈接問題
然後我轉到zbar和源文件夾鏈接到我的項目:
「項目 - >屬性 - > C/C++」,並補充安裝到「附加包含目錄」 zbar和文件夾。
Apperently它找到zbar和當我包括帶有「#包括‘zbar.h’」但是,當我跑我得到的錯誤:
"1>------ Build started: Project: test, Configuration: Release Win32 ------
1>main.obj : error LNK2001: unresolved external symbol _zbar_image_set_data
1>main.obj : error LNK2001: unresolved external symbol
_zbar_symbol_get_loc_y
1>main.obj : error LNK2001: unresolved external symbol _zbar_image_ref
1>main.obj : error LNK2001: unresolved external symbol
_zbar_image_get_symbols
1>main.obj : error LNK2001: unresolved external symbol
_zbar_symbol_set_first_symbol
1>main.obj : error LNK2001: unresolved external symbol _zbar_symbol_get_data
1>main.obj : error LNK2001: unresolved external symbol
_zbar_image_set_userdata
1>main.obj : error LNK2001: unresolved external symbol _zbar_image_create
1>main.obj : error LNK2001: unresolved external symbol
_zbar_image_scanner_set_config
1>main.obj : error LNK2001: unresolved external symbol
_zbar_image_scanner_create
1>main.obj : error LNK2001: unresolved external symbol _zbar_symbol_get_type
1>main.obj : error LNK2001: unresolved external symbol
_zbar_image_scanner_destroy
1>main.obj : error LNK2001: unresolved external symbol _zbar_symbol_next
1>main.obj : error LNK2001: unresolved external symbol
_zbar_symbol_get_loc_size
1>main.obj : error LNK2001: unresolved external symbol _zbar_get_symbol_name
1>main.obj : error LNK2001: unresolved external symbol
_zbar_image_set_format
1>main.obj : error LNK2001: unresolved external symbol
_zbar_symbol_set_get_size
1>main.obj : error LNK2001: unresolved external symbol
_zbar_image_get_userdata
1>main.obj : error LNK2001: unresolved external symbol
_zbar_symbol_get_loc_x
1>main.obj : error LNK2001: unresolved external symbol
_zbar_symbol_get_data_length
1>main.obj : error LNK2001: unresolved external symbol _zbar_image_set_size
1>main.obj : error LNK2001: unresolved external symbol _zbar_symbol_ref
1>main.obj : error LNK2001: unresolved external symbol _zbar_symbol_set_ref
1>main.obj : error LNK2001: unresolved external symbol _zbar_scan_image
1>..\..\bin\vs2015\test.exe : fatal error LNK1120: 24 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========="
當我按下「本地窗口debuggger」又名運行代碼,它被設置爲「win32」。
我在網上找了幫助,但沒有我發現固定的問題..
任何幫助表示讚賞!