Locating C Header Files in Visual Studio
Problem:
While compiling a C application obtained from SourceForge, you encounter an error indicating a missing header file. Despite finding the file in the source code, you're unsure where it should be placed for the compiler to detect it. Are there specific directories where header files are expected?
Answer:
Visual Studio searches for header files in the following sequence:
In this case, to resolve the missing header file issue, you can add the directory containing the header file to the project's "Additional Include Directories" in "Project Properties" -> "Configuration" -> "C/C " -> "General".
The above is the detailed content of Where Does Visual Studio Search for C Header Files?. For more information, please follow other related articles on the PHP Chinese website!