Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29412 Discussions

Can't run 32 bit executables on Windows XP

Bob_W_1
Beginner
1,451 Views

On a Windows 7 machine I use ifort to create a simple 32 bit hello world program.

It runs fine on Windows 7.  The GNU file program gives this description:

hello.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit

But when I try to run that same hello.exe progrram on a 32 bit Windows XP machine the OS complains that it's not a valid 32 bit executable.

So what do I have to do to get executable that will run on a 32 bit Windows XP machine?

 

 

 

0 Kudos
3 Replies
Bob_W_1
Beginner
1,451 Views

For my hello world program that worked, I put SUBSYSTEM:CONSOLE,"5.01" in the link line and it worked.  I just made that with a make file.

But, for the main project, which is in Visual Studio 2012, I have a problem.  In the Properties dialog and the Linker All Options panel, the SubSystem field does not have SUBSYSTEM:CONSOLE,"5.01" as an option.  So I set it to Not Set and in Additional Options I put

/SUBSYSTEM:CONSOLE,"5.01"

When I try to build the linker complains:

LINK : fatal error LNK1181: cannot open input file ',5.01'

All other attempts at quoting, such as

"/SUBSYSTEM:CONSOLE,5.01"

"/SUBSYSTEM:CONSOLE,"5.01""

fail with the same message.  Visual Studio's linker has a parser designed to thwart all attempts to get this option sent to it.

So what do you people using Visual Studio do to get that option passed to the linker?

 

0 Kudos
Steven_L_Intel1
Employee
1,451 Views

It works for me. Are you building 32-bit or 64-bit? 64-bit needs 5.02. Please attach a ZIP of the buildlog.htm showing the error - do not put the option in quotes. Please include in the ZIP your .vfproj file.

0 Kudos
Reply