Disculpa Antonio, la versión de FW era la correcta, lo que no era correcto es el Buildh64.bat que por ahorrar trabajo usé el de la versión anterior que ya tenia configurado
De todas formas he vuelto a probar a compilar con la configuracion de FivEdit y los errores mencionados persisten, aunque como ves aquí si compila bien el ejemplo.
Code: Select all
┌────────────────────────────────────────────────────────────────────────────┐
│ FWH 64 for Harbour 20.04 (VS64bits) Apr. 2020 Harbour development power │▄
│ (c) FiveTech 1993-2020 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 │█
└────────────────────────────────────────────────────────────────────────────┘█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.5.4
** Copyright (c) 2019 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x86_x64'
Compiling...
Harbour 3.2.0dev (r1904111533)
Copyright (c) 1999-2019, https://harbour.github.io/
Compiling 'tutor02.prg' and generating preprocessed output to 'tutor02.ppo'...
Lines 4956, Functions/Procedures 1
Generating C source output to 'tutor02.c'... Done.
Compilador de optimización de C/C++ de Microsoft (R) versión 19.25.28614 para x64
(C) Microsoft Corporation. Todos los derechos reservados.
tutor02.c
El sistema no puede encontrar la ruta especificada.
* Application successfully built *
Por si pudiera ser de utilidad adjunto los archivos buildh64.bat
Code: Select all
@ECHO OFF
CLS
ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
ECHO ³ FWH 64 for Harbour 20.04 (VS64bits) Apr. 2020 Harbour development power ³Ü
ECHO ³ (c) FiveTech 1993-2020 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 ³Û
ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ
ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß
if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST
@set oldpath=%path%
@set oldinclude=%include%
@set oldlib=%lib%
@set oldlibpath=%libpath%
@set current_dir=%cd%
rem if exist "%ProgramFiles%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" call "%ProgramFiles%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
if exist "d:\fivewin\VisualStudio\VC\Auxiliary\Build\vcvarsall.bat" call "d:\FiveWin\VisualStudio\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
if "%FWDIR%" == "" set FWDIR=d:\FiveWin\FWH64
if "%HBDIR%" == "" set HBDIR=d:\FiveWin\harbour_MSVC_64
ECHO Compiling...
set hdir=%HBDIR%
set hdirl=%hdir%\lib
@cd %current_dir%
%hdir%\bin\harbour %1 /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 -TP -W3 -O2 -c -I%hdir%\include -I"%ProgramFiles(x86)%\Windows Kits"\10\Include\10.0.18362.0\ucrt %1.c
:ENDCOMPILE
IF EXIST %1.rc "%ProgramFiles(x86)%\\Windows Kits\10\bin\10.0.18362.0\x64\rc" -r -D__64__ %1
echo %1.obj > msvc.tmp
echo %fwdir%\lib\FiveH64.lib %fwdir%\lib\FiveHC64.lib %fwdir%\lib\libmariadb64.lib >> msvc.tmp
rem echo %fwdir%\lib\hbhpdf64.lib >> msvc.tmp
rem echo %fwdir%\lib\libhpdf64.lib >> msvc.tmp
echo %hdirl%\hbhpdf.lib >> msvc.tmp
echo %hdirl%\libhpdf.lib >> msvc.tmp
echo %hdirl%\hbrtl.lib >> msvc.tmp
echo %hdirl%\hbvm.lib >> msvc.tmp
echo %hdirl%\gtgui.lib >> msvc.tmp
echo %hdirl%\hblang.lib >> msvc.tmp
echo %hdirl%\hbmacro.lib >> msvc.tmp
echo %hdirl%\hbrdd.lib >> msvc.tmp
echo %hdirl%\rddntx.lib >> msvc.tmp
echo %hdirl%\rddcdx.lib >> msvc.tmp
echo %hdirl%\rddfpt.lib >> msvc.tmp
echo %hdirl%\hbsix.lib >> msvc.tmp
echo %hdirl%\hbdebug.lib >> msvc.tmp
echo %hdirl%\hbcommon.lib >> msvc.tmp
echo %hdirl%\hbpp.lib >> msvc.tmp
echo %hdirl%\hbcpage.lib >> msvc.tmp
echo %hdirl%\hbwin.lib >> msvc.tmp
echo %hdirl%\hbct.lib >> msvc.tmp
echo %hdirl%\hbziparc.lib >> msvc.tmp
echo %hdirl%\hbmzip.lib >> msvc.tmp
echo %hdirl%\hbzlib.lib >> msvc.tmp
echo %hdirl%\hbpcre.lib >> msvc.tmp
echo %hdirl%\minizip.lib >> msvc.tmp
echo %hdirl%\xhb.lib >> msvc.tmp
echo %hdirl%\hbcplr.lib >> msvc.tmp
echo %hdirl%\png.lib >> msvc.tmp
echo %hdirl%\hbtip.lib >> msvc.tmp
echo %hdirl%\hbzebra.lib >> msvc.tmp
rem Uncomment these two lines to use Advantage RDD
rem echo %hdirl%\rddads.lib >> msvc.tmp
rem echo %hdirl%\ace32.lib >> msvc.tmp
echo kernel32.lib >> msvc.tmp
echo user32.lib >> msvc.tmp
echo gdi32.lib >> msvc.tmp
echo winspool.lib >> msvc.tmp
echo comctl32.lib >> msvc.tmp
echo comdlg32.lib >> msvc.tmp
echo advapi32.lib >> msvc.tmp
echo shell32.lib >> msvc.tmp
echo ole32.lib >> msvc.tmp
echo oleaut32.lib >> msvc.tmp
echo uuid.lib >> msvc.tmp
echo odbc32.lib >> msvc.tmp
echo odbccp32.lib >> msvc.tmp
echo iphlpapi.lib >> msvc.tmp
echo mpr.lib >> msvc.tmp
echo version.lib >> msvc.tmp
echo wsock32.lib >> msvc.tmp
echo msimg32.lib >> msvc.tmp
echo oledlg.lib >> msvc.tmp
echo psapi.lib >> msvc.tmp
echo gdiplus.lib >> msvc.tmp
echo winmm.lib >> msvc.tmp
echo vfw32.lib >> msvc.tmp
echo ws2_32.lib >> msvc.tmp
echo strmiids.lib >> msvc.tmp
IF EXIST %1.res echo %1.res >> msvc.tmp
link @msvc.tmp /nologo /subsystem:windows /force:multiple
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built *
@set path=%oldpath%
@set include=%oldinclude%
@set lib=%oldlib%
@set libpath=%oldlibpath%
@set oldpath=""
@set oldinclude=""
@set oldlib=
@set oldlibpath=
%1
GOTO EXIT
ECHO
rem delete temporary files
@del %1.c
@del msvc.tmp
:COMPILEERROR
@type comp.log
ECHO * Compiling errors *
GOTO EXIT
:LINKERROR
ECHO * Linking errors *
GOTO EXIT
:SINTAX
ECHO SYNTAX: Build [Program] {-- No especifiques la extensi?n PRG
ECHO {-- Don't specify .PRG extension
GOTO EXIT
:NOEXIST
ECHO The specified PRG %1 does not exist
:EXIT
y el archivo de configuracion de FivEdit
Code: Select all
[PREFERENCES]
0=Harbour VSC 2019
1=d:\fivewin\fwh64
2=64 bits
3=
4=D:\FiveWin\Harbour_MSVC_64
5=Harbour
6=/n /m /w /es1 /gc1 /ql
7=
8=D:\FiveWin\VisualStudio\VC\Tools\MSVC\14.25.28610
9=/nologo /subsystem:windows /NODEFAULTLIB:msvcrt /LTCG
10=
34=-TP -W3 -c /GS- /GA
41=Microsoft VSC 2019
44=
45=
46=
47=
61=.T.
62=FiveWin
72=-r -d__FLAT__
M31=.T.
[USERLIBS]
001=d:\fivewin\fwh64\lib\FiveH64.lib,1
002=d:\fivewin\fwh64\lib\FiveHC64.lib,1
[XHARBOURLIBS]
001=D:\FiveWin\Harbour_MSVC_64\lib\hbwin.lib,1
002=D:\FiveWin\Harbour_MSVC_64\lib\gtgui.lib,1
003=D:\FiveWin\Harbour_MSVC_64\lib\hbrtl.lib,1
004=D:\FiveWin\Harbour_MSVC_64\lib\hbvm.lib,1
005=D:\FiveWin\Harbour_MSVC_64\lib\hblang.lib,1
006=D:\FiveWin\Harbour_MSVC_64\lib\hbmacro.lib,1
007=D:\FiveWin\Harbour_MSVC_64\lib\hbrdd.lib,1
008=D:\FiveWin\Harbour_MSVC_64\lib\rddntx.lib,1
009=D:\FiveWin\Harbour_MSVC_64\lib\rddcdx.lib,1
010=D:\FiveWin\Harbour_MSVC_64\lib\rddfpt.lib,1
011=D:\FiveWin\Harbour_MSVC_64\lib\hbsix.lib,1
012=D:\FiveWin\Harbour_MSVC_64\lib\hbdebug.lib,1
013=D:\FiveWin\Harbour_MSVC_64\lib\hbcommon.lib,1
014=D:\FiveWin\Harbour_MSVC_64\lib\hbpp.lib,1
015=D:\FiveWin\Harbour_MSVC_64\lib\hbcpage.lib,1
016=D:\FiveWin\Harbour_MSVC_64\lib\hbcplr.lib,1
017=D:\FiveWin\Harbour_MSVC_64\lib\hbct.lib,1
018=D:\FiveWin\Harbour_MSVC_64\lib\hbpcre.lib,1
019=D:\FiveWin\Harbour_MSVC_64\lib\xhb.lib,1
020=D:\FiveWin\Harbour_MSVC_64\lib\hbziparc.lib,1
021=D:\FiveWin\Harbour_MSVC_64\lib\hbmzip.lib,1
022=D:\FiveWin\Harbour_MSVC_64\lib\hbzlib.lib,1
023=D:\FiveWin\Harbour_MSVC_64\lib\minizip.lib,1
024=D:\FiveWin\Harbour_MSVC_64\lib\png.lib,1
025=D:\FiveWin\Harbour_MSVC_64\lib\hbcurl.lib,1
026=D:\FiveWin\Harbour_MSVC_64\lib\hbusrrdd.lib,1
027=D:\FiveWin\Harbour_MSVC_64\lib\hbtip.lib,1
028=D:\FiveWin\Harbour_MSVC_64\lib\hbmxml.lib,1
029=D:\FiveWin\Harbour_MSVC_64\lib\hbmisc.lib,1
[CCOMPLIBS]
001=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\kernel32.Lib,1
002=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\User32.Lib,1
003=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\Ole32.Lib,1
004=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\Gdi32.Lib,1
005=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\ComCtl32.Lib,1
006=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\ComDlg32.Lib,1
007=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\AdvAPI32.Lib,1
008=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\shell32.lib,1
009=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\OleAut32.Lib,1
010=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\Uuid.Lib,1
011=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\odbc32.lib,1
012=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\odbccp32.lib,1
013=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\iphlpapi.lib,1
014=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\Mpr.Lib,1
015=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\Version.Lib,1
016=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\WSock32.Lib,1
017=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\MSImg32.Lib,1
018=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\OleDlg.Lib,1
019=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\Psapi.Lib,1
020=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\gdiplus.lib,1
021=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\WinMM.Lib,1
022=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\Vfw32.Lib,1
023=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\runtimeobject.lib,1
024=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\WS2_32.Lib,1
025=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\ShLwApi.Lib,1
026=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\Imm32.Lib,1
027=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\Urlmon.Lib,1
028=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\strmiids.lib,1
029=D:\FiveWin\VisualStudio\VC\Tools\MSVC\14.25.28610\lib\onecore\x64\libcmt.lib,1
030=D:\FiveWin\VisualStudio\VC\Tools\MSVC\14.25.28610\lib\x64\oldnames.lib,1
031=D:\Windows Kits\10\Lib\10.0.18362.0\um\x64\OneCore.Lib,1
032=D:\FiveWin\VisualStudio\VC\Tools\MSVC\14.25.28610\lib\x64\libvcruntime.lib,1
033=D:\Windows Kits\10\Lib\10.0.18362.0\ucrt\x64\libucrt.lib,1
[INCLUDES]
001=D:\FiveWin\FWH64\include,1
002=D:\FiveWin\Harbour_MSVC_64\include,1
003=D:\FiveWin\VisualStudio\VC\Tools\MSVC\14.25.28610\include,1
004=D:\Windows Kits\10\Include\10.0.18362.0\ucrt,1
Con los errores que genera
Code: Select all
FiveHC64.lib(PRINTDC.obj) : error LNK2001: s¡mbolo externo OpenPrinterA sin resolver
FiveHC64.lib(PRINTDC.obj) : error LNK2001: s¡mbolo externo GetPrinterA sin resolver
FiveHC64.lib(PRINTDC.obj) : error LNK2001: s¡mbolo externo ClosePrinter sin resolver
hbwin.lib(wapi_wingdi.obj) : error LNK2001: s¡mbolo externo ClosePrinter sin resolver
hbwin.lib(wapi_wingdi.obj) : error LNK2001: s¡mbolo externo OpenPrinterW sin resolver
hbwin.lib(wapi_wingdi.obj) : error LNK2001: s¡mbolo externo DocumentPropertiesW sin resolver
Noname.exe : fatal error LNK1120: 5 externos sin resolver
Link Error