Dev-Cpp icon indicating copy to clipboard operation
Dev-Cpp copied to clipboard

Error 216:This version of %1 is not compatible with the version of Windows you're running.

Open GumpChaos opened this issue 5 years ago • 6 comments
trafficstars

From https://github.com/Embarcadero/Dev-Cpp/releases, and download Embarcadero_Dev-Cpp_6.2_TDM-GCC_9.2_Setup.zip. Then I installed it successfully on my Windows-10 Education, 32-bit Operating system, x64-based processor. Then I test it with a very simple Cpp code to calculate the area of a rectangle. the compilation is also successful. However ,when I press F10 to run it, the systems says: "failed to execute C:***\6.rectangle.exe": Error 216:This version of %1 is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.

Do you have any idea about this issue?

Thank you very much!

Gump

GumpChaos avatar Nov 16 '20 02:11 GumpChaos

Post the c++ code or project you used to generate the error?

FMXExpress avatar Nov 16 '20 05:11 FMXExpress

Re-reading it. It sounds like you compiled a 64bit EXE and tried to run it on 32bit Windows. Change to the 32bit compile.

FMXExpress avatar Nov 16 '20 05:11 FMXExpress

Hi FMXExpress,

Here is the code I used:

#include using namespace std;

int main() {

int a, b;
cin >> a >> b;
cout << 2 * (a + b) << endl;
cout << a * b << endl;
return 0;

}

It is very simple. I will follow your suggestion to set it to 32-bit compilation. Could you please tell me how to set the 32-bit compilation? This is my first time to use DevC++. Thank you very much!

Gump

GumpChaos avatar Nov 17 '20 02:11 GumpChaos

Hi Embarcadero/Dev-Cpp, Could you tell me how to set to 32-bit compilation? Thank you! Regards, Gump

On Mon, Nov 16, 2020 at 12:15 AM FMXExpress [email protected] wrote:

Re-reading it. It sounds like you compiled a 64bit EXE and tried to run it on 32bit Windows. Change to the 32bit compile.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Embarcadero/Dev-Cpp/issues/83#issuecomment-727739237, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKYWVPDAMXSMHESLVY6OAX3SQCYO7ANCNFSM4TWS37OA .

GumpChaos avatar Nov 17 '20 02:11 GumpChaos

There is a drop down box at the top that says TDM-GCC 9.2.0 64-Bit Release. Change it to TDM-GCC 9.2.0 32-Bit Release.

FMXExpress avatar Nov 17 '20 05:11 FMXExpress

There is a drop down box at the top that says TDM-GCC 9.2.0 64-Bit Release. Change it to TDM-GCC 9.2.0 32-Bit Release.

this didn't work for me.is there any other way?

bushrakhalid802 avatar Sep 08 '21 16:09 bushrakhalid802