I'm tring to convert my software from 32 bits to 64 bits, and still have some issues, but we have write a .bat to build the Hernan's browse lib for 64 bits.
This are the instructions we use and I think my be usefull to you:
- Code: Select all Expand view
@ECHO OFF
CLS
ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
ECHO ³ FWH 64 for Harbour 14.02 (MSVC++) Feb.2014 Harbour development power ³Ü
ECHO ³ TWBROWSE ³Û
ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ
ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß
del OK.log
set NAMELIB=TWBRWX64_H.LIB
set FWDIR=C:\fwh64
set HBDIR=C:\harbour
set oldpath=%path%
set oldinclude=%include%
set oldlib=%lib%
set oldlibpath=%libpath%
if exist "%ProgramFiles%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" call "%ProgramFiles%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
REM if "%FWDIR%" == "" set FWDIR=.\..
if "%FWDIR%" == "" set FWDIR=C:\FWH64
if "%HBDIR%" == "" set HBDIR=c:\harbour
ECHO Compilando...
set hdir=%HBDIR%
REM set hdirl=%hdir%\lib\vc64
set hdirl=%hdir%\lib
REM ----------------------------------------------------------------
REM -------------- wbrwline.C ----------------
REM ----------------------------------------------------------------
SET CARPETA=.\sourceh\function\twbrowse
SET NAME=wbrwline
cl -D__FLAT__ -D__HARBOUR__ -TC -W3 -O2 -c -I%hdir%\include %CARPETA%\%NAME%.c > comp.log
:ENDCOMPILE
IF ERRORLEVEL 1 GOTO END
ECHO ........... %NAME% Compilada
REM ----------------------------------------------------------------
REM -------------- tmultise.PRG ----------------
REM ----------------------------------------------------------------
SET CARPETA=.\sourceh\classes\twbrowse
SET NAME=tmultise
%hdir%\bin\harbour %CARPETA%\%NAME%.PRG /n /i%fwdir%\include;%hdir%\include /w /p /d__64__ %2 %3 > comp.log 2> warnings.log
IF ERRORLEVEL 1 GOTO COMPILEERROR
@type comp.log
@type warnings.log
cl -TC -W3 -O2 -c -I%hdir%\include %NAME%.c > comp.log
:ENDCOMPILE
ECHO ........... %NAME% Compilada
REM ----------------------------------------------------------------
REM -------------- wbrowse.PRG ----------------
REM ----------------------------------------------------------------
SET NAME=wbrowse
%hdir%\bin\harbour %CARPETA%\%NAME%.PRG /n /i%fwdir%\include;%hdir%\include /w /p /d__64__ %2 %3 > comp.log 2> warnings.log
IF ERRORLEVEL 1 GOTO COMPILEERROR
@type comp.log
@type warnings.log
cl -TC -W3 -O2 -c -I%hdir%\include %NAME%.c > comp.log
:ENDCOMPILE
ECHO ........... %NAME% Compilada
REM ----------------------------------------------------------------
REM -------------- ENLAZA LA LIBRERIA ----------------
REM ----------------------------------------------------------------
echo wbrowse.obj > msvc.tmp
echo tmultise.obj >> msvc.tmp
echo wbrwline.obj >> msvc.tmp
LIB /OUT:.\LIB\%NAMELIB% @msvc.tmp > LIB_ERROR.LOG
IF ERRORLEVEL 1 GOTO LIBERROR
ECHO ................................Lib %NAMELIB% enlazada.
DEL *.OBJ >> %NAMELIB%.log
DEL *.BAK >> %NAMELIB%.log
DEL *.BAK >> %NAMELIB%.log
DEL %NAMELIB%.log >> OK.log
:LIBERROR
@type LIB_ERROR.LOG
GOTO EXIT
ECHO
:COMPILEERROR
@type comp.log
ECHO * Compiling errors *
GOTO EXIT
:LINKERROR
@type LINK_ERRORS.LOG
ECHO * Linking errors *
GOTO EXIT
:EXIT
rem delete temporary files
del wbrowse.c
del tmultise.c
del wbrwline.c
del wbrowse.obj
del tmultise.obj
del wbrwline.obj
del msvc.tmp
del warnings.log
del LIB_ERROR.LOG
del comp.LOG
SET PATH=%OLDPATH%
SET INCLUDE=%OLDINCLUDE%
SET LIB=%OLDLIB%
SET OLDPATH=
SET OLDINCLUDE=
SET OLDLIB=
SET RUTALIB=
SET NAMELIB=