- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page