用cygwin汇集.cpp?

发布于 2025-02-08 23:22:34 字数 288 浏览 0 评论 0原文

我尝试以两种不同的方式将.cpp编译为.exe,第一个(下一个教程)是转到文件位置(c:\ users \ me \ me \ desktop \ cpp \ cpp文件)并打开CMD并打开提示然后键入:g ++ main.cpp main.exe(我也尝试了另一种方法,首先是.exe),并且出现了此错误:'g ++'不被识别为内部或外部命令, 可操作的程序或批处理文件。

在cygwin提示中,我有一个错误:cc1plus:致命错误:klog_main.cpp:没有这样的文件或目录 汇编终止。

我该如何解决此问题/我在做什么错?

I tried to compile a .cpp into an .exe with two different ways, the first (following a tutorial) was by going to the files location (C:\Users\me\Desktop\CPP Files) and typing cmd and opening a prompt then typing: g++ main.cpp main.exe (i also tried the other way around, with the .exe first) and got this error: 'g++' is not recognized as an internal or external command,
operable program or batch file.

on the cygwin prompt i got this error: cc1plus: fatal error: klog_main.cpp: No such file or directory
compilation terminated.

How can i fix this/what am i doing wrong?

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

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

发布评论

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