无法在Windows 10上运行cpp exe文件 [英] Unable to run a cpp exe file on windows 10
问题描述
我无法在Windows 10上运行存储在.exe扩展名上的cpp文件。我已安装了Mingw 16.06编译器并尝试在命令行上运行cpp文件,但它显示在执行.exe文件时发生错误并且请求关闭了。在处理代码块时发生同样的
事情。请帮助。
I am unable to run a cpp file stored on .exe extension on windows 10. I have installed the Mingw 16.06 compiler and tried to run the cpp file on command line but it shows that a error occured while executing the .exe file and the request closed down. Same thing happened while working on codeblocks. Please help.
推荐答案
我无法在Windows 10上运行存储在.exe扩展名上的cpp文件。我已经安装了Mingw 16.06编译器并试图在命令行上运行cpp文件,但它显示执行.exe文件时发生错误,请求关闭
。处理代码块时也发生了同样的事情。
I am unable to run a cpp file stored on .exe extension on windows 10. I have installed the Mingw 16.06 compiler and tried to run the cpp file on command line but it shows that a error occured while executing the .exe file and the request closed down. Same thing happened while working on codeblocks.
首先请注意,此论坛是针对与$ b相关的问题$ b Microsoft Visual Studio中的Visual C ++编译器。 MinGW的问题
或Code :: Blocks应该在专门针对这些产品的论坛上发布。
你需要更具体一些你得到的错误。什么
*确切*是你看到的错误信息?使用Windows Copy&粘贴
以发布错误消息。不要试图将它们输入论坛帖子。
你对你所做的事情的描述有些令人困惑。当你用
时,你说:
>我无法运行存储在.exe扩展名上的cpp文件
你到底在做什么?你不能只是"存储"文件中的cpp代码
并给它一个exe扩展名。你必须通过编译和链接*来构建来自
cpp文件的exe。那是你真正在做什么的吗?
- Wayne
First off, please note that this forum is for issues related to the
Visual C++ compiler in Microsoft Visual Studio. Problems with MinGW
or Code::Blocks should be posted in a forum dedicated to those products.
You need to be more specific about the errors you're getting. What
*exactly* is the error message you're seeing? Use Windows Copy & Paste
to post error messages. Don't try to type them into a forum post.
Your description of what you're doing is somewhat confusing. When
you say:
>I am unable to run a cpp file stored on .exe extension
what *exactly* are you doing? You can't just "store" cpp code in a file
and give it an exe extension. You have to *build* the exe from the
cpp file by compiling and linking. Is that what you're actually doing?
- Wayne
这篇关于无法在Windows 10上运行cpp exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!