dev c. failed to execute .exe error 193: %1 not a valid win32 application

試著忘記壹切 提交于 2019-12-07 09:46:02

问题


so I was trying to test run my dev c++ as usual and it said failed to execute location/name.exe error 193: %1 is not a valid win 32 application. I have not used the compiler for anything complex yet.

#include<stdio.h>
#include<math.h>
#define PI 3.14
int main()
{
    int r      = 3;

    float area = PI*pow(r,2);

    printf("the area of the circle is %f",area);

    return 0;
}

I'm using Dev c++ GCC (MinGW) compiler.

it compiles properly but when I try to run, it get this error message

Failed to execute "C:\Users\SIM JONES NIGL TD\Desktop\c language\areaofcircle2.exe": Error 193: %1 is not a valid Win32 application.

Press any key to continue


回答1:


I just experienced this problem and I noticed that if you just save your programs in a folder containing no spaces. My default folder was set in My documents so I made a folder in my F: Drive named programs and saved the programs in it and then compiled them. I didn't experience this error then :)




回答2:


I solved my problem save the cpp file in a folder with no spaces. For example

Older path c:/Users/jorge santos/programa1.cpp

New path c:/Users/jorgesantos/programa1.cpp



来源:https://stackoverflow.com/questions/40188810/dev-c-failed-to-execute-exe-error-193-1-not-a-valid-win32-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!