Win32 console application no longer valid when compile with PellesC Version 10

Started by Jean-Pierre Leroy, February 23, 2021, 05:57:46 PM

Previous topic - Next topic

Jean-Pierre Leroy

Dear all,

I have a Win32 console application that was compiled with Pelles C 8.0.

Recently I switched to Pelles C version 10.0.

When I run this Win32 console application on an old Windows 2003 R2 server I get this message.

QuoteThis application is not a valid Win32 application

The same C source code compile with Pelles C 8.0 runs fine on this old Windows 2003 R2 Server.

Is-there something I can do ?

Thank for your help.

bitcoin

Change Linker->Os Version and Subsystem to 5.1
or open with any PE editor and change same settings in Optional Header