So to do this in Visual Studio, open up Solution Explorer, right click on the main project‘s name and then select Properties. In the window that appears go to Configuration Properties->C/C++->General and in Additional Include Directories add the path to the header files. This can be relative or absolute. You must do this for all configurations in your project. Please note that it must be Include for the compiler to associate that with the #include directive. So if you are modifying another IDE then look out for Include.
Visual Studio 2013: fatal error C1083: Cannot open include file: 'XXX.h': No such file or directory
时间: 2024-10-05 23:57:09