VScode c语言错误 undefined reference to defined reference to `WinMain‘collect2.exe: error: ld returned 1

VScode c语言错误 undefined reference to defined reference to `WinMain‘collect2.exe: error: ld returned 1,第1张

undefined reference to defined reference to `WinMain'collect2.exe: error: ld returned 1 exit status 先解决下问题

这个报错问题不难 是在于main函数名字拼写错误

我们来看下代码,以及错误提示:

## 碎碎念

大清早刷 leetcode 遇到问题报错,想着从本地编译器调试下,结果出现了标题报错的错误提示,删减到最后一行怀疑自我的时候,才发现,main写错了。。。。。
天天都出bug,今天格外值得纪念。。。。。满头黑线 QvQ 扶额痛哭

希望大家不要犯这样的错误 呜呜呜~~~

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/875335.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-13
下一篇2022-05-13

发表评论

登录后才能评论

评论列表(0条)

    保存