hi,
there is a file c:\fwh\samples\buildh32.bat
i guess it is for 32 Bit ... but how to use under 32 Bit OS
VisualStudioSetup say "need 64 Bit" ... is there a 32 Bit Version ![]()
greeting,
Jimmy
Jimmy
hi,
there is a file c:\fwh\samples\buildh32.bat
i guess it is for 32 Bit ... but how to use under 32 Bit OS
VisualStudioSetup say "need 64 Bit" ... is there a 32 Bit Version ![]()
Dear Jimmy,
Are you using Visual Studio Community 2022 ?
Antonio Linares wrote:Are you using Visual Studio Community 2022 ?
Dear Jimmy,
I use Windows 11 64 bits, sorry I have not tested it lately on Windows 32 bits
@set oldpath=%path%
@set oldinclude=%include%
@set oldlib=%lib%
@set oldlibpath=%libpath%
if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\Hostx86\x86\nmake" -fMLS32.mak
@set path=%oldpath%
@set include=%oldinclude%
@set lib=%oldlib%
@set libpath=%oldlibpath%
@set oldpath=""
@set oldinclude=""
@set oldlib=
@set oldlibpath=HBDIR=c:\harbour
FWDIR=c:\fwh
VCDIR="c:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\Hostx32\x32"
SDKDIR="c:\Program Files (x86)\Windows Kits\10"
RCDIR="c:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x32"
PRLIB="c:\Projects\Libs"@set oldpath=%path%
@set oldinclude=%include%
@set oldlib=%lib%
@set oldlibpath=%libpath%
if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_x64
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\Hostx64\x64\nmake" -fMLS64.mak
@set path=%oldpath%
@set include=%oldinclude%
@set lib=%oldlib%
@set libpath=%oldlibpath%
@set oldpath=""
@set oldinclude=""
@set oldlib=
@set oldlibpath=HBDIR=c:\Harbour64
FWDIR=c:\fwh64
VCDIR="c:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.30.30705\bin\Hostx64\x64"
SDKDIR="c:\Program Files (x86)\Windows Kits\10"
RCDIR="c:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64"
PRLIB="c:\Projects\Libs"TimStone wrote:You use VS Community 2022 on the 64 bit OS only.
TimStone wrote:
call "%ProgramFiles%\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\Hostx86\x86\nmake" -fMLS32.mak
Why not "Hostx64" for x86 build?
Dear Enrico,
I guess nmake works the same for both architectures
just guessing
Hi Antonio, I don't understand your answer... ?
I meant that you can use Hostx64 for both x64 and x86 build. You only have to run it on a 64bit system.
Enrico,
That works fine. I guess I was just working from habit with the older versions. I just tested to be sure.
Tim