arm-elf-gcc と arm-rtems-gcc を使用して、vsoc_beta でいくつかのテストを実行しようとしています。ただし、両方のコンパイラで同じエラーが発生しました。
/home/student/vsoc-beta/apps/libgomp/root.o: In function `main':
/home/student/vsoc-beta/apps/libgomp/libgomp.c:24: multiple definition of `main'
app_obj.o:/home/student/vsoc-beta/apps/rotate/rot.c:103: first defined here
/home/student/vsoc-beta/apps/libgomp/root.o: In function `main':
root.c:(.text+0x219c): undefined reference to `_app_main'
root.c:(.text+0x2298): undefined reference to `_app_main'
make: *** [o-optimize/app.exe] Error 1
これらのテストは libgomp を使用しており、libgomp.c には次の行があります。
extern int _app_main(int argc, char **argv, char **envp);
メインは次のように定義されます。
int main(int argc, char **argv, char **envp)
テスト ファイルには、別の main 関数があります。
int main(int argc, char **argv)
何が問題なのですか?