Missing header files from an shared C++ project

拥有回忆 提交于 2020-01-07 06:42:32

问题


I have downloaded an .NET solution, which is contains 2 C# and 1 C++ project. When I build the solution, the Error List says:

Error 1 error C1083: Cannot open include file: 'libavformat/avformat.h': No such file or directory C:\Users\Dinh\Downloads\TestOnvif-master\TestOnvif-master\FFmpegRTSPCppCLR\FFmpegMedia.cpp 19 1 TestFFmpegLib

Actually, I see an folder in solution directory named lib, it containts all *.h files that the C++ project need to use.

Som, How to make the C++ project see these *.h in the lib folder?


回答1:


Open the project's property dialog. Then go to: Configuration Properties - C/C++ - General - Additional Include Directories and add the path to the libavformat folder.



来源:https://stackoverflow.com/questions/28183609/missing-header-files-from-an-shared-c-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!