私は、次のコマンドをgcc in centosのメインエラーへの未定義参照。
gcc hello.c
を使用してgccでのhello worldプログラムを実行しようとしていた。しかし、私は次のエラーを取得しています。
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
投稿にhello.cのテキストを追加してください。 – osgx