← スキル一覧に戻る

autofix-symbol-dep
by hyz0906
⭐ 0🍴 0📅 2026年1月19日
SKILL.md
name: autofix-symbol-dep description: Fixes linker 'undefined reference' errors by finding and adding the library dependency.
Symbol Dependency Skill
Fixes linker errors where symbols cannot be resolved.
Detection Patterns
undefined reference to 'X'unresolved external symbol X(MSVC)ld.lld: error: undefined symbol: X
Strategy
- Extract Symbol: Parse the mangled or demangled symbol name.
- Find Library: Search for which library defines the symbol.
- Add Dependency: Update build file to link against the library.
Instructions
Step 1: Extract Symbol Name
From: undefined reference to '_ZN5MyApp10initializeEv'
Demangle: MyApp::initialize()
Step 2: Find the Defining Library
Search for the symbol definition:
# Find source files containing the function
grep -r "void MyApp::initialize" --include="*.cpp"
# Or search for class definition
grep -r "class MyApp" --include="*.h"
Then find which build target compiles that source file.
Step 3: Add Dependency
GN (BUILD.gn):
deps = [
"//path/to:my_library",
]
Soong (Android.bp):
shared_libs: ["libmyapp"],
// or
static_libs: ["libmyapp"],
CMake:
target_link_libraries(my_target PRIVATE my_library)
Step 4: Verify
Re-run the linker or full build to confirm resolution.
Common Android Libraries
| Symbol Pattern | Library |
|---|---|
android:: | libutils, libcutils |
AudioFlinger | libaudioflinger |
binder:: | libbinder |
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です