Página 1 de 1

XHarbour - como confirmar?

Enviado: 27 Nov 2017 21:56
por JoséQuintas
Fiz um teste agora com XHarbour.....
Nem sei com o que foi.... rs

Código: Selecionar todos

d:\temp>set hb
HB_COMPILER=mingw
HB_COMPILER_VER=0701
HB_INSTALL_PREFIX=d:\xharbour
HB_LANG=EN

Código: Selecionar todos

d:\temp>set path
Path=d:\xharbour\bin;d:\xharbour\bcc\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;d:\tools\util;d:\harbour\bin;d:\harbour\comp\mingw\mingw64\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

Código: Selecionar todos

d:\temp>hbmk2 -xhb test
hbmk2: Processing environment options: -comp=mingw
hbmk2: Processing configuration: d:\xharbour\bin\hbmk.hbc
xHarbour 1.2.3 Intl. (SimpLex) (Build 20170902)
Copyright 1999-2017, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'test.prg'...
Generating C source output to 'C:\Users\joseq\AppData\Local\Temp\hbmk_85vgzk.dir\test.c'...
Done.
Lines 14, Functions/Procedures 2, pCodes 31
Tudo certo.
A dúvida é.....
O que foi usado pra compilar/linqueditar?

Código: Selecionar todos

:\temp>hbmk2 -xhb test -trace
hbmk2: Processing environment options: -comp=mingw
hbmk2: Processing configuration: d:\xharbour\bin\hbmk.hbc
hbmk2: Harbour compiler command:
d:\xharbour\bin\harbour.exe -n test.prg -DHBMK_HAS_HBMK=1 -oC:\Users\joseq\AppData\Local\Temp\hbmk_8x90zl.dir\ -id:\xharbour\include -undef:.ARCH. -undef:__ARCH64BIT__ -D__PLATFORM__WINDOWS -D__ARCH32BIT__
xHarbour 1.2.3 Intl. (SimpLex) (Build 20170902)
Copyright 1999-2017, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'test.prg'...
Generating C source output to 'C:\Users\joseq\AppData\Local\Temp\hbmk_8x90zl.dir\test.c'...
Done.
Lines 14, Functions/Procedures 2, pCodes 31
hbmk2: C/C++ compiler command:
gcc.exe -c -O3 -fno-ident  -W -Wall -Wlogical-op -Wduplicated-cond -Wshift-negative-value -Wnull-dereference -m32 -pipe -Id:/xharbour/include C:/Users/joseq/AppData/Local/Temp/hbmk_8x90zl.dir/test.c C:/Users/joseq/AppData/Local/Temp/hbmk_9ei3l2.c
hbmk2: Linker command:
gcc.exe C:/Users/joseq/AppData/Local/Temp/hbmk_8x90zl.dir/test.o C:/Users/joseq/AppData/Local/Temp/hbmk_8x90zl.dir/hbmk_9ei3l2.o    -m32 -Wl,--nxcompat -Wl,--dynamicbase -Wl,--pic-executable,-e,_mainCRTStartup -mconsole -Wl,--start-group -Wl,-Bstatic -ldebug -lvm -lrtl -llang -lcodepage -lgtcgi -lgtstd -lgtpca -lgtwin -lgtwvt -lgtgui -lrdd -lusrrdd -ldbfntx -ldbfcdx -ldbfnsx -ldbffpt -lrdd -lhsx -lhbsix -lmacro -lpp -lcommon -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lpcrepos -lzlib -Wl,-Bdynamic   -Wl,--end-group -otest.exe  -Ld:/xharbour/lib/win/mingw -Ld:/github/oohg
Foi mingw 7.1?.... mas e as LIBs do 7.1 pro XHarbour?
Nem sei mais.... rs

Como dá pra ver qual o compilador C usado no XHarbour?
Existe função que mostre isso?

XHarbour - como confirmar?

Enviado: 27 Nov 2017 22:11
por JoséQuintas
Ok, devo ter usado este.
Que doideira... kkkkk
xhb.png
Usei o mesmo compilador 7.1 que uso no Harbour 3.4 para o XHarbour com 7.2

Nota:
Só estava testando compilar a Sefazclass com XHarbour, pra ver o que dava....

XHarbour - como confirmar?

Enviado: 27 Nov 2017 22:14
por JoséQuintas
A título de curiosidade, na Sefazclass...
Vou ter que ajustar as LIBs para o xHarbour.

Código: Selecionar todos

d:\cdrom\FONTES\INTEGRA\sefazclass>hbmk2 sefazclass -xhb -w0 -es0 -q0
hbmk2: Processing environment options: -comp=mingw
hbmk2: Processing configuration: d:\xharbour\bin\hbmk.hbc
hbmk2 [sefazclass]: Warning: Cannot find hbhpdf.hbc (referenced from
                    sefazclass.hbc)
hbmk2 [sefazclass]: Warning: Cannot find hbzebra.hbc (referenced from
                    sefazclass.hbc)
hbmk2 [sefazclass]: Warning: Cannot find hbwin.hbc (referenced from
                    sefazclass.hbc)
hbmk2 [sefazclass]: Warning: Cannot find hbct.hbc (referenced from
                    sefazclass.hbc)
Warning W0001  Redefinition or duplicate definition of #define __ARCH32BIT__
Warning W0001  Redefinition or duplicate definition of #define __ARCH32BIT__
Warning W0001  Redefinition or duplicate definition of #define __ARCH32BIT__
Warning W0001  Redefinition or duplicate definition of #define __ARCH32BIT__
source/ze_SpedDaCte.prg(9) Error F0029  Can't open #include file: 'harupdf.ch'
hbmk2 [sefazclass]: Error: Running Harbour compiler. 1
d:\xharbour\bin\harbour.exe -n1 source/ze_SpedDaCte.prg -DHBMK_HAS_HBMK=1 -w3 -es2 -m -n -DHBMK_HAS_SEFAZCLASS=1 -w0 -es0 -q0 -oC:\Users\joseq\AppData\Local\Temp\hbmk_wok9dy.dir\ -id:\xharbour\include -iinclude -undef:.ARCH. -undef:__ARCH64BIT__ -D__PLATFORM__WINDOWS -D__ARCH32BIT__

XHarbour - como confirmar?

Enviado: 27 Nov 2017 22:19
por JoséQuintas
Resolvi da harupdf.ch, mas não da hbwin.ch

Código: Selecionar todos

Description=any
libs=sefazclass
{!xhb}libs=hbhpdf.hbc hbzebra.hbc hbwin.hbc hbct.hbc
libpaths=${hb_install_prefix}/addons/sefazclass/lib/${hb_plat}/${hb_comp}
incpaths=include
{xhb}incpaths=d:\xharbour\contrib\hbhpdf\tests

Código: Selecionar todos

:\cdrom\FONTES\INTEGRA\sefazclass>hbmk2 sefazclass -xhb -w0 -es0 -q0
hbmk2: Processing environment options: -comp=mingw
hbmk2: Processing configuration: d:\xharbour\bin\hbmk.hbc
Warning W0001  Redefinition or duplicate definition of #define __ARCH32BIT__
Warning W0001  Redefinition or duplicate definition of #define __ARCH32BIT__
Warning W0001  Redefinition or duplicate definition of #define __ARCH32BIT__
Warning W0001  Redefinition or duplicate definition of #define __ARCH32BIT__
source/ze_SpedDaCte.prg(10) Error F0029  Can't open #include file: 'hbwin.ch'
hbmk2 [sefazclass]: Error: Running Harbour compiler. 1
d:\xharbour\bin\harbour.exe -n1 source/ze_SpedDaCte.prg -DHBMK_HAS_HBMK=1 -w3 -es2 -m -n -DHBMK_HAS_SEFAZCLASS=1 -w0 -es0 -q0 -oC:\Users\joseq\AppData\Local\Temp\hbmk_ptvps4.dir\ -id:\xharbour\include -iinclude -id:\xharbour\contrib\hbhpdf\tests -undef:.ARCH. -undef:__ARCH64BIT__ -D__PLATFORM__WINDOWS -D__ARCH32BIT__
Erro relativamente simples: falta o hbwin.ch

harupdf.ch tinha, foi só indicar o path:
{xhb}incpaths=d:\xharbour\contrib\hbhpdf\tests