いくつかの関数を含む .c ファイル (ヘッダーなし) があります。その .c ファイルで関数を呼び出す必要がある別の .mm ファイルがあります。これは、ファイルを取得しているxcodeプロジェクトで機能します。ただし、このファイルを自分のプロジェクトに追加してこれを行うと。次のエラーが表示されます。
Undefined symbols for architecture armv7:
"Init(Context*)", referenced from:
-[EAGLView initWithFrame:] in EAGLView.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
.mm ファイルに次の行があります。
int Init(Context *context);