0

我试图查看与这些错误消息相关的问题。我试图检查所有内容,但仍然没有找到错误的根源。

根据您的说法,obj 错误后跟错误 LNK2019: unresolved external symbol 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 Files\IDS\uEye\Develop\Source\SimpleLive\Debug\po.exe : fatal error LNK1120: 19 unresolved externals
4

1 回答 1

0

我通过单击我的项目的属性添加了对应的库,然后将目录添加到库目录

似乎您已将“附加库目录”添加到您的 VS 项目中 - 但没有链接实际的库文件(Windows 扩展名:.lib)。我认为你所做的是

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

并添加了您的第 3 方“.lib”所在的目录。但实际上这并没有链接到那个 '.lib' 文件本身(它只是添加了 VS 正在搜索链接的 .lib 文件的目录)。

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

有一个类似的列表:

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

里面的某个地方应该会出现你的“.lib 文件”的名称。如果没有,您必须在此处添加它。即,如果您的第 3 方库的库名为“myLib.lib”,则您将在其中插入

'kernel32.lib;user32.lib;...;myLib.lib;%(AdditionalDependencies)'
于 2013-02-25T11:05:58.100 回答