报错:undefined reference to `WinMain'
报错:undefined reference to `WinMain'
错音是编译器找不到main()函数:
- 可能是
main()函数没有加入编译。检查Makefile - 可能缺少是
main()函数,比如main拼写错误 - 可能是
main()函数不再全局命名空间中,注意main()函数必须置于默认命名空间(即全局命名空间)下
错音是编译器找不到main()函数:
main() 函数没有加入编译。检查Makefilemain()函数,比如main拼写错误main()函数不再全局命名空间中,注意main()函数必须置于默认命名空间(即全局命名空间)下