未定義参照 - CI/CD用語集の定義
未定義参照は、使用されたシンボルの定義がリンク時に利用できない linker エラーです。
未定義参照 とは、シンボル (関数や変数) が宣言され使用されたが、定義もリンクもされなかったことを意味する linker エラーです。コンパイルは成功し、リンクが失敗します。
未定義参照とは、シンボル (関数や変数) が宣言され使用されたが、定義もリンクもされなかったことを意味する linker エラーです。コンパイルは成功し、リンクが失敗します。
CI において
CI に "undefined reference to foo" が表示される場合、修正は通常、ソースファイルの欠落、忘れた -l ライブラリフラグ、あるいは C/C++ の extern "C" の不一致です。リンク (build の最後のステップ) で発生するため、それ以外は緑のコンパイルの陰に隠れることがあります。
関連ガイド
Linker Error - CI/CD Glossary DefinitionLinker Error: A linker error is any failure during the link stage of a build, such as an unresolved symbol, a…
Linker - CI/CD Glossary DefinitionLinker: A linker combines one or more compiled object files, plus referenced libraries, into a single executa…
Name Mangling - CI/CD Glossary DefinitionName Mangling: Name mangling is how a compiler encodes function signatures (namespaces, argument types) into…
Library Path - CI/CD Glossary DefinitionLibrary Path: A library path is the list of directories the linker (build time) or loader (run time) searches…