2013-02-22 89 views
0

我試圖查看與這些錯誤消息相關的問題。我試圖檢查一切,但仍然沒有找到錯誤的根源。在VC++ 2010 Express中構建項目時出錯

根據你的obj錯誤跟着錯誤LNK2019:無法解析的外部符號imp__is_CaptureVideo在函數中引用,它的出處是什麼?

我正在使用Visual Express C++ 2010.

謝謝。

1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_CaptureVideo referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnButtonStart(void)" ([email protected]@@AAEXXZ) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_StopLiveVideo referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnButtonStop(void)" ([email protected]@@AAEXXZ) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_SetImageMem referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnBnClickedButtonLoadParameter(void)" ([email protected]@@AAEXXZ) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_AllocImageMem referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnBnClickedButtonLoadParameter(void)" ([email protected]@@AAEXXZ) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_SetColorMode referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnBnClickedButtonLoadParameter(void)" ([email protected]@@AAEXXZ) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_AOI referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnBnClickedButtonLoadParameter(void)" ([email protected]@@AAEXXZ) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_FreeImageMem referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnBnClickedButtonLoadParameter(void)" ([email protected]@@AAEXXZ) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_ParameterSet referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnBnClickedButtonLoadParameter(void)" ([email protected]@@AAEXXZ) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_EnableMessage referenced in function "private: bool __thiscall CIdsSimpleLiveDlg::OpenCamera(void)" ([email protected]@@AAE_NXZ) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_GetSensorInfo referenced in function "private: bool __thiscall CIdsSimpleLiveDlg::OpenCamera(void)" ([email protected]@@AAE_NXZ) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_RenderBitmap referenced in function "private: long __thiscall CIdsSimpleLiveDlg::OnUEyeMessage(unsigned int,long)" ([email protected]@@[email protected]) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_ExitCamera referenced in function "private: void __thiscall CIdsSimpleLiveDlg::ExitCamera(void)" (?[email protected]@@AAEXXZ) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_GetColorDepth referenced in function "private: int __thiscall CIdsSimpleLiveDlg::InitDisplayMode(void)" ([email protected]@@AAEHXZ) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_SetDisplayMode referenced in function "private: int __thiscall CIdsSimpleLiveDlg::InitDisplayMode(void)" ([email protected]@@AAEHXZ) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_GetDuration referenced in function "private: int __thiscall CIdsSimpleLiveDlg::InitCamera(unsigned long *,struct HWND__ *)" ([email protected]@@[email protected]@@Z) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_InitCamera referenced in function "private: int __thiscall CIdsSimpleLiveDlg::InitCamera(unsigned long *,struct HWND__ *)" ([email protected]@@[email protected]@@Z) 
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_ImageFormat referenced in function "private: void __thiscall CIdsSimpleLiveDlg::GetMaxImageSize(int *,int *)" ([email protected]@@[email protected]) 
1>nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv 
1>nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc 
1>C:\Program Files\IDS\uEye\Develop\Source\SimpleLive\Debug\po.exe : fatal error LNK1120: 19 unresolved externals 
+0

Ahem,源代碼? – 2013-02-22 14:34:59

+2

不錯,但沒有人知道你究竟在嘗試什麼。似乎你沒有鏈接一個庫... – 2013-02-22 14:35:38

+1

什麼是VB C++ 2010 btw?混合C++和VB? – Axel 2013-02-22 14:38:10

回答

0

我已經通過點擊屬性我的項目 ,然後添加對應的庫,添加目錄到圖書館目錄

好像你已經添加了「附加庫目錄'到您的VS項目 - 但沒有鏈接實際的庫文件(Windows擴展名:.lib)。我認爲你做了什麼是

Project Properties -> Configuration Properties-> Linker -> General -> Additional Library Directories

,並添加了directoy您的第三方「的.lib」在裏面。但事實上,這並不與該'.lib'文件本身鏈接(它只是添加了VS正在搜索鏈接的.lib文件的目錄)。

嘗試以下操作: Right click on your project -> Project Properties -> Configuration Properties-> Linker -> Input -> Additional Dependencies

有像列表:

'kernel32.lib;user32.lib;...;%(AdditionalDependencies)' 

而且somewehere裏面應該有你 '的.lib文件' 的名義出現。如果沒有,你必須在那裏添加它。即如果你的第三方庫的lib被命名爲'myLib.lib',你可以在那裏插入

'kernel32.lib;user32.lib;...;myLib.lib;%(AdditionalDependencies)' 
相關問題