(.text+0x18): undefined reference to `main'

在将VS中的程序移植到ubuntu中出现的一个问题,主要原因是在vs中默认的主函数写成int _tmain(), 而在gcc编译时要找的是int main().改过来就可以了。

posted @ 2017-08-25 10:19  司马_羽鹤  阅读(4330)  评论(0编辑  收藏  举报