Undefined reference to main - collect2: ld returned 1 exit status

后端 未结 7 2174
栀梦
栀梦 2020-12-07 22:43

I\'m trying to compile a program (called es3), but, when I write from terminal:

gcc es3.c -o es3

it appears this message:

/usr/l         


        
7条回答
  •  伪装坚强ぢ
    2020-12-07 22:56

    In my case it was just because I had not Saved the source file and was trying to compile a empty file .

提交回复
热议问题