Cannot open config.h file

One of the header files uses

#include <config.h>

but i keep getting the error

Fatal error C1083: Cannot open include file: 'config.h': No such file or directory

and I do not know why. config.h is in the headers folder in the project, and when I right-click on it, I can actually open the file, but I still get this error when creating the project.

+5
source share
1 answer

This should mean that the directory is not added to the additional directories tab in the project properties. If the header is not in the same place as the source file, it does not matter if it is added to the project or not.

( ) β†’ β†’ C/++ β†’ β†’ , (, - "./headers" ).

+4

All Articles