(已解决)在Windows 10上安装vscode的mingw

发布于 2025-02-13 16:29:56 字数 202 浏览 0 评论 0原文

解决了这个问题,

我成功地安装了整个mingw,我的操作系统和VScode似乎都识别出这些问题,不幸的是,当我尝试并编译项目时,它似乎存在问题,我首先遇到了关于G ++不正确运行和的错误用代码-1退出

,然后我还是按调试,它无法创建可执行文件。 如果我尝试检查错误,说这是很好的

吗?

没有从命令提示

编辑:g ++似乎

This problem has been solved

I successfully installed the entirety of MinGW which both my operating system and Vscode seem to recognise, unfortunately when I try and try and compile a project it seems to have issues and I first get an error about g++ not running properly and exiting with code -1

Then I press debug anyway and it fails to create an executable.
If I try and check for errors it says it's fine

what is going on?

EDIT: g++ doesn't seem to run from the command prompt "udenfined reference to 'WinMain"

I'm writing C++ in case it helps

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文