在Ubuntu里运行gcc编译一个.c文件的时候,报了这个错,其实只需要加个int main(){}即可解决
报错 (.text+0x20): undefined reference to `main' collect2: error: ld returned
Ubuntu gcc 编译错误速解
最新推荐文章于 2025-02-17 22:06:01 发布
在Ubuntu中使用gcc编译.c文件遇到错误时,只需简单地添加int main(){}
623

被折叠的 条评论
为什么被折叠?



