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 写错误

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

猜你喜欢

转载自blog.csdn.net/qq_44226094/article/details/105641088