From: David Ashley <david.ibm@gm...> - 2010-10-03 14:56:57
Mark, Rick -
I have set up basic Win7 32 and 64 bit virtual machines with the SDK, C++
compiler, and libraries/header files also loaded. I was ready to start the set
up for building ooRexx by installing all the other pieces when I realized just
how ignorant of Windows I have become over the years. So I have a few really
1. Can Win 7 64 bit run 32 bit binariaes and DLLs?
2. Are there any different steps or additional items that need to be performed
for 64 bit?
From: Mark Miesfeld <miesfeld@gm...> - 2010-10-03 17:20:40
On Sun, Oct 3, 2010 at 7:56 AM, David Ashley <david.ashley.ibm@...> wrote:
> 1. Can Win 7 64 bit run 32 bit binariaes and DLLs?
> 2. Are there any different steps or additional items that need to be performed
> for 64 bit?
All 64-bit Windows OSes can run 32 bit binaries. (You can't of course
install both a 32-bit and 64-bit ooRexx on the same machine because
rxapi will have conflicts.)
What controls if a 64-bit or 32-bit version is built is the Windows
SDK or VC++ environment set up. So for a 64-bit build (on a 64-bit
Windows) I use this setup:
call "C:\Tools\Visual.Studio2008\VC\vcvarsall.bat" amd64
call "C:\Tools\MsSDK.v6.0\bin\SetEnv.cmd" /Release /x64 /XP
and for a 32-bit build (on a 32-bit Windows):
call "C:\Tools\Visual.Studio.2008\VC\vcvarsall.bat" x86
call "C:\Tools\MsSDK.v6.0\bin\SetEnv.cmd" /Release /x86 /XP
Note that the exact parameters vary a little bit with the version of
the SDK (and I think with the compiler also.) You can get the
parameters by doing:
using the correct path to the installaion of course. You only need to
quote the path if you installed into a directory with spaces in it.
You can also cross-compile, compile the 64-bit version in a 32-bit
Windows, etc.. But I usually have a 32-bit system right next to a
64-bit system so I never bothered to try it.