In function `_start' undefined reference to `main' error: ld returned 1 exit status

                                     粉絲不w

/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status

 注意main是不是寫錯了,或者 return 寫錯誤

一定不要粗心·,哈哈哈哈

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章