gpt4 book ai didi

c++ - Visual Studio 2013 链接 : fatal error LNK1181: cannot open input file

转载 作者:太空宇宙 更新时间:2023-11-03 22:12:35 25 4
gpt4 key购买 nike

我正在使用 Visual Studio 2013。我正在尝试构建教授给我的一些代码,但我不断收到此错误:

LINK : fatal error LNK1181: cannot open input file 'C:\Users\manduchi\Documents\eyegaze\EyeGazeDemo..\Libraries\OpenCV\lib\opencv_core249.lib'

但是,在我的电脑上,opencv_core249.lib 位于其他地方。我已经尝试将链接器目录更新为我计算机上的地址,但我仍然收到错误消息。

这是我的尝试:

  • 在配置属性 -> VC++ 目录下,我在包含目录和库目录中添加了包含 .lib 文件的文件夹的地址。
  • Linker-> General 并在那里添加了一个额外的库目录。
  • Linker-> Input and added "opencv_core249.lib"to additional dependencies

我是 Visual Studio 和 C++ 的新手,所以我可能做错了?

更多信息:

  • 我正在我的 Windows 7 训练营上做这件事
  • 代码在 U 盘上,因为我没有足够的空间训练营分区。

任何帮助将不胜感激!谢谢

更新

更新错误信息

LINK : fatal error LNK1181: cannot open input file 'opencv_calib3d300.lib'

我认为“opencv_calib3d300.lib”位于继承值下的链接器->输入->附加依赖项上。

链接器命令行

/OUT:"debug\EyeGazeDemo.exe"/MANIFEST/NXCOMPAT/PDB:"debug\EyeGazeDemo.pdb"/DYNAMICBASE "glu32.lib""opengl32.lib""gdi32.lib""user32.lib""opencv_ts300.lib""opencv_ts300d.lib""opencv_world300.lib""opencv_world300d.lib""E:\Qt\5.0.2\msvc2012_64\lib\qtmaind.lib""E:\Qt\5.0.2\msvc2012_64\lib\Qt5Cored.lib""E:\Qt\5.0.2\msvc2012_64\lib\Qt5Widgetsd.lib""E:\Qt\5.0.2\msvc2012_64\lib\Qt5Guid.lib""opencv_calib3d300.lib""opencv_contrib300.lib ” “opencv_core300.lib” “opencv_features2d300.lib” “opencv_flann300.lib” “opencv_gpu300.lib” “opencv_highgui300.lib” “opencv_imgproc300.lib” “opencv_legacy300.lib” “opencv_ml300d.lib” “opencv_nonfree300d.jdetect.lib” “opencv_nonfree300d.lib” “opencv0detect” ""opencv_ocl300d.lib""opencv_photo300d.lib""opencv_stitching300d.lib""opencv_superres300d.lib""opencv_video300d.lib""opencv_videostab300d.lib""kernel32.lib""winspool.lib""comdlg32.lib""advapi32.lib ""shell32.lib""ole32.lib""oleaut32.lib""uuid.lib""odbc32.lib""odbccp32.lib""OpenCVConfig.cmake""OpenCVM modules.cmake""OpenCVModules-debug.cmake""OpenCVModules-release.cmake""E:\eyegaze\eyegaze\Libraries\OpenCV\lib\opencv_core249d.lib""E:\eyegaze\eyegaze\Libraries\OpenCV\lib\opencv_imgproc249d.lib""E:\eyegaze\eyegaze\Libraries\OpenCV\lib\opencv_highgui249d.lib""E:\eyegaze\eyegaze\Libraries\OpenCV\lib\opencv_objdetect249d.lib""E:\eyegaze\eyegaze\Libraries\OpenCV\lib\opencv_ml249d.lib""E:\eyegaze\eyegaze\Libraries\Intraface\lib\IntraFaceDLL-x86d.lib"/DEBUG/MACHINE:X86/SAFESEH/INCREMENTAL:NO/PGD:"debug\EyeGazeDemo.pgd"/SUBSYSTEM:WINDOWS/MANIFESTUAC:"level='asInvoker' uiAccess='false'"/ManifestFile:"Win32\Debug\EyeGazeDemo.exe.intermediate.manifest"/ERRORREPORT:PROMPT/NOLOGO/LIBPATH:"C:\opencv\build\x64\vc12\x64\vc11\lib"/LIBPATH:"E:\Qt\5.0.2\msvc2012_64\lib"/LIBPATH:"E:\eyegaze\eyegaze\Libraries\OpenCV\lib"/LIBPATH:"E:\eyegaze\eyegaze\Libraries\Intraface\lib"/LIBPATH:"E:\eyegaze\eyegaze\EyeGazeDemo"/LIBPATH:"C:\opencv\build\x64\vc12\lib"/TLBID:1

最佳答案

删除所有对库的引用。该项目指向您在上面提供的路径的某个地方,您需要将其删除。

然后将库添加到可执行项目中。右击->添加->现有项目,将类型更改为所有文件,然后浏览到文件位置。

关于c++ - Visual Studio 2013 链接 : fatal error LNK1181: cannot open input file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30850206/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com