在VC++2010 Express中生成项目时出错

Error when building a project in VC++ 2010 Express

本文关键字:项目 出错 VC++2010 Express      更新时间:2023-10-16

我试图了解与这些错误消息相关的问题是什么。我试着检查了所有的东西,但仍然没有找到错误的来源。

根据您的说法,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)" (?OnButtonStart@CIdsSimpleLiveDlg@@AAEXXZ)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_StopLiveVideo referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnButtonStop(void)" (?OnButtonStop@CIdsSimpleLiveDlg@@AAEXXZ)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_SetImageMem referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnBnClickedButtonLoadParameter(void)" (?OnBnClickedButtonLoadParameter@CIdsSimpleLiveDlg@@AAEXXZ)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_AllocImageMem referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnBnClickedButtonLoadParameter(void)" (?OnBnClickedButtonLoadParameter@CIdsSimpleLiveDlg@@AAEXXZ)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_SetColorMode referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnBnClickedButtonLoadParameter(void)" (?OnBnClickedButtonLoadParameter@CIdsSimpleLiveDlg@@AAEXXZ)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_AOI referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnBnClickedButtonLoadParameter(void)" (?OnBnClickedButtonLoadParameter@CIdsSimpleLiveDlg@@AAEXXZ)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_FreeImageMem referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnBnClickedButtonLoadParameter(void)" (?OnBnClickedButtonLoadParameter@CIdsSimpleLiveDlg@@AAEXXZ)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_ParameterSet referenced in function "private: void __thiscall CIdsSimpleLiveDlg::OnBnClickedButtonLoadParameter(void)" (?OnBnClickedButtonLoadParameter@CIdsSimpleLiveDlg@@AAEXXZ)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_EnableMessage referenced in function "private: bool __thiscall CIdsSimpleLiveDlg::OpenCamera(void)" (?OpenCamera@CIdsSimpleLiveDlg@@AAE_NXZ)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_GetSensorInfo referenced in function "private: bool __thiscall CIdsSimpleLiveDlg::OpenCamera(void)" (?OpenCamera@CIdsSimpleLiveDlg@@AAE_NXZ)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_RenderBitmap referenced in function "private: long __thiscall CIdsSimpleLiveDlg::OnUEyeMessage(unsigned int,long)" (?OnUEyeMessage@CIdsSimpleLiveDlg@@AAEJIJ@Z)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_ExitCamera referenced in function "private: void __thiscall CIdsSimpleLiveDlg::ExitCamera(void)" (?ExitCamera@CIdsSimpleLiveDlg@@AAEXXZ)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_GetColorDepth referenced in function "private: int __thiscall CIdsSimpleLiveDlg::InitDisplayMode(void)" (?InitDisplayMode@CIdsSimpleLiveDlg@@AAEHXZ)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_SetDisplayMode referenced in function "private: int __thiscall CIdsSimpleLiveDlg::InitDisplayMode(void)" (?InitDisplayMode@CIdsSimpleLiveDlg@@AAEHXZ)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_GetDuration referenced in function "private: int __thiscall CIdsSimpleLiveDlg::InitCamera(unsigned long *,struct HWND__ *)" (?InitCamera@CIdsSimpleLiveDlg@@AAEHPAKPAUHWND__@@@Z)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_InitCamera referenced in function "private: int __thiscall CIdsSimpleLiveDlg::InitCamera(unsigned long *,struct HWND__ *)" (?InitCamera@CIdsSimpleLiveDlg@@AAEHPAKPAUHWND__@@@Z)
1>IdsSimpleLiveDlg.obj : error LNK2019: unresolved external symbol __imp__is_ImageFormat referenced in function "private: void __thiscall CIdsSimpleLiveDlg::GetMaxImageSize(int *,int *)" (?GetMaxImageSize@CIdsSimpleLiveDlg@@AAEXPAH0@Z)
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 FilesIDSuEyeDevelopSourceSimpleLiveDebugpo.exe : fatal error LNK1120: 19 unresolved externals

我已通过单击属性添加了相应的库然后,将目录添加到Library Directories

看起来你已经将"附加库目录"添加到了你的VS项目中,但没有链接实际的库文件(windows扩展名:.lib)。我认为你所做的是

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

并添加了您的第三方".lib"所在的目录。但事实上,它本身并没有链接到".lib"文件(它只是添加了VS正在搜索链接的.lib文件的目录)。

请尝试以下操作:Right click on your project -> Project Properties -> Configuration Properties-> Linker -> Input -> Additional Dependencies

有这样一个列表:

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

还有一些人应该在里面出现你的".lib文件"的名称。如果没有,你必须把它添加到那里。也就是说,如果你的第三方库的库名为"myLib.lib",你会在那里插入

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