2013-02-22 55 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)' 
相关问题