autofix-missing-header
Fixes 'file not found' errors by locating headers and adding include paths or
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Fixes 'file not found' errors by locating headers and adding include paths or
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Comprehensive build error repair tool for C++, Rust, and Java projects using Soong, GN, Make, or CMake. Automatically fixes 30+ types of errors including headers, linking, APIs, and config.
Fixes function call errors with wrong number or type of arguments.
Fixes type mismatch errors by adding appropriate casts or conversions.
Fixes syntax errors in Android.bp files.
Removes unsupported or unknown compiler flags from build configurations.
Fixes scope and variable errors in BUILD.gn files.
| name | autofix-missing-header |
| description | Fixes 'file not found' errors by locating headers and adding include paths or |
Fixes C/C++ compilation errors where header files cannot be found.
fatal error: 'X.h' file not foundcannot open source file "X.h"No such file or directory (for headers)utils/config.h).Extract:
find . -name "config.h" -type f
Or use semantic search to locate the header.
Option A: Fix #include path in source file
If the header is at src/utils/config.h but included as #include "config.h":
// Before
#include "config.h"
// After
#include "utils/config.h"
Option B: Add include directory to build file
For GN (BUILD.gn):
include_dirs = [ "src/utils" ]
For Soong (Android.bp):
local_include_dirs: ["src/utils"],
Re-run the build or check that the include now resolves.
| Symbol | Header |
|---|---|
std::vector | <vector> |
std::string | <string> |
std::cout | <iostream> |
printf | <cstdio> |
NULL | <cstddef> |