Dev cpp-运行时错误:不是有效的Win32应用程序

时间:2020-08-29 13:33:07

标签: c++ gcc dev-c++

我最近从C++开始,并且正在使用Dev cpp作为我的IDE。但是,每当我为Dev cpp编译并运行该程序时,该程序都会成功编译,但是在运行.exe文件时出现以下错误:

--------------------------------
Failed to execute "C:\Users\Karan Gandhi\Desktop\Untitled1.exe":
Error 193: %1 is not a valid Win32 application.

Press any key to continue . . .

这是我的程序:

#include <iostream>
using namespace std;

int main() {
    cout << "Hello world";
    return 0;
}

请注意:通过在终端中打开文件,"C:\Users\Karan Gandhi\Desktop\Untitled1.exe"

可以成功从终端手动运行程序

有什么办法可以解决这个问题?谢谢!

0 个答案:

没有答案
相关问题