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.