31 Out 2018 10:43
hbmk2: Processando opções do ambiente: -comp=mingw
Harbour 3.2.0dev (r1411040054)
Copyright (c) 1999-2014, http://harbour-project.org/
Harbour Build Info
---------------------------
Version: Harbour 3.2.0dev (r1411040054)
Compiler: MinGW GNU C 4.6.1 (32-bit)
Platform: Windows 8 6.2.9200
PCode version: 0.3
ChangeLog last entry: 2014-11-04 01:54 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
ChangeLog ID: d0bdab4707bc9a6a62ecd653d4e404015aca43f5
Built on: Nov 6 2014 02:40:14
Build options: (Clipper 5.3b) (Clipper 5.x undoc)
---------------------------
D:/LetoDBf/source/server/letofunc.c: In function 'leto_PingForZombies':
D:/LetoDBf/source/server/letofunc.c:3702:19: warning: implicit declaration of function 'hb_fsPipeWrite' [-Wimplicit-function-declaration]
D:/LetoDBf/source/server/letofunc.c: In function 'HB_FUN_LETO_DBEVAL':
D:/LetoDBf/source/server/letofunc.c:7264:4: warning: implicit declaration of function 'HB_ISEVALITEM' [-Wimplicit-function-declaration]
D:/LetoDBf/source/server/letofunc.c: In function 'leto_Info':
D:/LetoDBf/source/server/letofunc.c:11847:15: error: 'DBI_TRANSREC' undeclared (first use in this function)
D:/LetoDBf/source/server/letofunc.c:11847:15: note: each undeclared identifier is reported only once for each function it appears in
D:/LetoDBf/source/server/leto_2.c: In function 'HB_FUN_LETO_SERVER':
D:/LetoDBf/source/server/leto_2.c:2148:13: warning: implicit declaration of function 'hb_fsPipeWrite' [-Wimplicit-function-declaration]
hbmk2[letodb]: Erro: Executando compilador C/C++. 1
C:\hb32\comp\mingw\bin\gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer -DUSE_LZ4=1 -DUSE_PMURHASH=1 -W -Wall -pipe -IC:/hb32/include -ID:/LetoDBf/include -ID:/LetoDBf/source/3rd/lz4/lib -IC:/hb32/contrib/hbct C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_0nnnng.dir/server.c C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_0nnnng.dir/errorsys.c C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_0nnnng.dir/common.c D:/LetoDBf/source/server/errint.c D:/LetoDBf/source/server/letoacc.c D:/LetoDBf/source/server/letovars.c D:/LetoDBf/source/server/letofunc.c D:/LetoDBf/source/server/letolist.c D:/LetoDBf/source/server/leto_2.c D:/LetoDBf/source/common/blowfish.c D:/LetoDBf/source/common/common_c.c D:/LetoDBf/source/3rd/lz4/lib/lz4.c D:/LetoDBf/source/common/lz4net.c D:/LetoDBf/source/common/PMurHash.c C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_4xrbef.c
hbmk2: Processando opções do ambiente: -comp=mingw
D:/LetoDBf/source/client/letocl.c: In function 'leto_Send':
D:/LetoDBf/source/client/letocl.c:1225:10: warning: implicit declaration of function 'hb_socketSetError' [-Wimplicit-function-declaration]
D:/LetoDBf/source/client/letocl.c: In function 'LetoConnectionClose':
D:/LetoDBf/source/client/letocl.c:3050:10: warning: implicit declaration of function 'hb_fsPipeWrite' [-Wimplicit-function-declaration]
D:/LetoDBf/source/client/leto1.c: In function 'leto_dbfTransCheckCounters':
D:/LetoDBf/source/client/leto1.c:2404:36: error: 'DBTF_CPYCTR' undeclared (first use in this function)
D:/LetoDBf/source/client/leto1.c:2404:36: note: each undeclared identifier is reported only once for each function it appears in
D:/LetoDBf/source/client/leto1.c: In function 'letoInfo':
D:/LetoDBf/source/client/leto1.c:2645:12: error: 'DBI_TRANSREC' undeclared (first use in this function)
D:/LetoDBf/source/client/leto1.c:2654:13: warning: implicit declaration of function 'hb_dbTransInfoGet' [-Wimplicit-function-declaration]
D:/LetoDBf/source/client/leto1.c:2654:40: warning: initialization makes pointer from integer without a cast [enabled by default]
D:/LetoDBf/source/client/leto1.c: In function 'HB_FUN_LETO_DBTRANS':
D:/LetoDBf/source/client/leto1.c:6164:10: warning: implicit declaration of function 'hb_dbTransInfoPut' [-Wimplicit-function-declaration]
D:/LetoDBf/source/client/leto1.c:6164:20: warning: assignment makes pointer from integer without a cast [enabled by default]
D:/LetoDBf/source/client/leto1.c:6167:20: error: 'DBI_TRANSREC' undeclared (first use in this function)
D:/LetoDBf/source/client/leto1.c:6178:66: error: 'DBTF_CPYCTR' undeclared (first use in this function)
D:/LetoDBf/source/client/leto1.c:6179:16: warning: implicit declaration of function 'hb_dbTransCounters' [-Wimplicit-function-declaration]
hbmk2[rddletoaddon]: Erro: Executando compilador C/C++. 1
C:\hb32\comp\mingw\bin\gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer -DUSE_PMURHASH=1 -DUSE_LZ4=1 -W -Wall -pipe -IC:/hb32/include -ID:/LetoDBf/include -ID:/LetoDBf/source/3rd/lz4/lib C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_iomxse.dir/rddsys.c D:/LetoDBf/source/client/letocl.c D:/LetoDBf/source/client/leto1.c D:/LetoDBf/source/client/letomgmn.c D:/LetoDBf/source/common/blowfish.c D:/LetoDBf/source/common/common_c.c D:/LetoDBf/source/3rd/lz4/lib/lz4.c D:/LetoDBf/source/common/lz4net.c D:/LetoDBf/source/common/PMurHash.c
31 Out 2018 11:13
31 Out 2018 11:34
Estou convertendo tudo para minigui extends e compilo com BCC padrão da minigui extends. Mesmo que consiga corrigir estes erros acima, não vai gerar lib .lib, daí não vou conseguir usar com a minigui extends?
31 Out 2018 14:14
31 Out 2018 14:51
#include "inkey.ch"
#include "rddleto.ch"
#include "hbgtinfo.ch"
REQUEST HB_GT_WVT_DEFAULT
Procedure Main()
PathLeto := "//localhost"+cIP+":2812/"
nConect := leto_Connect( PathLeto )
If nConect == -1
nRes := leto_Connect_Err()
If nRes == LETO_ERR_LOGIN
Alert( "Falha ao Logar" )
ElseIf nRes == LETO_ERR_RECV
Alert( "Error ao conectar" )
ElseIf nRes == LETO_ERR_SEND
Alert( "Erro de envio" )
Else
Alert( "Erro na conexão com o servidor: " + PathLeto )
Endif
Quit
Endif
Altd()
leto_DisConnect()
Return
D:\LetoDBf>hbmk2 teste letodb.hbc
hbmk2: Processando opções do ambiente: -comp=mingw
Harbour 3.2.0dev (r1411040054)
Copyright (c) 1999-2014, http://harbour-project.org/
Compiling 'teste.prg'...
Lines 748, Functions/Procedures 1
Generating C source output to 'C:\Users\PROGRAMA\AppData\Local\Temp\hbmk_anmd3g.dir\teste.c'... Done.
lib/librddleto.a(leto1.o):(.text+0xbdc7): undefined reference to `hb_dbTransInfoGet'
lib/librddleto.a(leto1.o):(.text+0xf2cc): undefined reference to `hb_dbTransInfoPut'
lib/librddleto.a(leto1.o):(.text+0xf3e5): undefined reference to `hb_dbTransCounters'
lib/librddleto.a(letocl.o):(.text+0x364): undefined reference to `hb_socketSetError'
lib/librddleto.a(letocl.o):(.text+0x206e): undefined reference to `hb_socketSetError'
lib/librddleto.a(letocl.o):(.text+0x209a): undefined reference to `hb_socketSetError'
lib/librddleto.a(letocl.o):(.text+0x212f): undefined reference to `hb_socketSetError'
lib/librddleto.a(letocl.o):(.text+0x21aa): undefined reference to `hb_socketSetError'
lib/librddleto.a(letocl.o):(.text+0x22cf): more undefined references to `hb_socketSetError' follow
lib/librddleto.a(letocl.o):(.text+0x4906): undefined reference to `hb_fsPipeWrite'
lib/librddleto.a(letocl.o):(.text+0x601d): undefined reference to `hb_socketSetError'
lib/librddleto.a(letocl.o):(.text+0x626a): undefined reference to `hb_socketSetError'
lib/librddleto.a(letocl.o):(.text+0x64cd): undefined reference to `hb_socketSetError'
lib/librddleto.a(letocl.o):(.text+0x68da): undefined reference to `hb_socketSetError'
lib/librddleto.a(letocl.o):(.text+0x6d3f): undefined reference to `hb_socketSetError'
lib/librddleto.a(letocl.o):(.text+0x6e2f): more undefined references to `hb_socketSetError' follow
collect2: ld returned 1 exit status
hbmk2: Erro: Executando linkeditor. 1
C:\hb32\comp\mingw\bin\gcc.exe C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_anmd3g.dir/teste.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_anmd3g.dir/hbmk_erqdwi.o -mconsole -Wl,--start-group -lrddleto -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainstd -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oteste.exe -LC:/hb32/lib/win/mingw -Llib
librddleto.a 28/06/2017 00:50 Arquivo A 322KB
31 Out 2018 15:14
consegui um letodb.exe, então vamos esquecer a compilação do Letodb.exe vamos para o passo 2. Compilar o teste abaixo.
31 Out 2018 15:58
Harbour Build Info
---------------------------
Version: Harbour 3.2.0dev (r1802131223)
Compiler: MinGW GNU C 5.3 (32-bit)
Platform: Windows 10 10.0
PCode version: 0.3
ChangeLog last entry: 2018-02-13 13:23 UTC+0100 Aleksander Czajczynski (hb fki.pl)
ChangeLog ID: d629aa0cad08399fa42c0dbf1df7cbd06486ac38
Built on: Feb 22 2018 04:47:00
Build options: (memory tracking) (Clipper 5.3b) (Clipper 5.x undoc)
D:\LetoDBf>hbmk2 letodb.hbp letodb.hbc
hbmk2: Processando opções do ambiente: -comp=mingw
lib\librddleto.a(leto1.o):(.text+0xe4b0): multiple definition of `HB_FUN_LETO_DBEVAL'
C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letofunc.o:letofunc.c:(.text+0x23100): first defined here
lib\librddleto.a(leto1.o):(.text+0x100b0): multiple definition of `HB_FUN_LETO_SET'
C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/server.o:server.c:(.text+0x60): first defined here
lib\librddleto.a(letomgmn.o):(.text+0xac0): multiple definition of `HB_FUN_LETO_FERASE'
C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letofunc.o:letofunc.c:(.text+0x222c0): first defined here
lib\librddleto.a(letomgmn.o):(.text+0xb40): multiple definition of `HB_FUN_LETO_FRENAME'
C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letofunc.o:letofunc.c:(.text+0x22370): first defined here
lib\librddleto.a(letomgmn.o):(.text+0xce0): multiple definition of `HB_FUN_LETO_FOPEN'
C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letofunc.o:letofunc.c:(.text+0x21e30): first defined here
lib\librddleto.a(letomgmn.o):(.text+0xdd0): multiple definition of `HB_FUN_LETO_FCREATE'
C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letofunc.o:letofunc.c:(.text+0x21f80): first defined here
lib\librddleto.a(letomgmn.o):(.text+0xec0): multiple definition of `HB_FUN_LETO_FCLOSE'
C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letofunc.o:letofunc.c:(.text+0x220d0): first defined here
lib\librddleto.a(letomgmn.o):(.text+0x4c30): multiple definition of `HB_FUN_LETO_VARSET'
C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letovars.o:letovars.c:(.text+0x2450): first defined here
lib\librddleto.a(letomgmn.o):(.text+0x4ef0): multiple definition of `HB_FUN_LETO_VARGET'
C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letovars.o:letovars.c:(.text+0x2290): first defined here
lib\librddleto.a(letomgmn.o):(.text+0x4ff0): multiple definition of `HB_FUN_LETO_VARGETCACHED'
C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letovars.o:letovars.c:(.text+0xf90): first defined here
lib\librddleto.a(letomgmn.o):(.text+0x5010): multiple definition of `HB_FUN_LETO_VARINCR'
C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letovars.o:letovars.c:(.text+0x2900): first defined here
lib\librddleto.a(letomgmn.o):(.text+0x5180): multiple definition of `HB_FUN_LETO_VARDECR'
C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letovars.o:letovars.c:(.text+0x2910): first defined here
lib\librddleto.a(letomgmn.o):(.text+0x52f0): multiple definition of `HB_FUN_LETO_VARDEL'
C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letovars.o:letovars.c:(.text+0x2920): first defined here
lib\librddleto.a(letomgmn.o):(.text+0x5440): multiple definition of `HB_FUN_LETO_VARGETLIST'
C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letovars.o:letovars.c:(.text+0x2b00): first defined here
collect2.exe: error: ld returned 1 exit status
hbmk2[letodb]: Erro: Executando linkeditor. 1
C:\hb32\comp\mingw\bin\gcc.exe C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/server.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/errorsys.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/common.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/errint.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letoacc.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letovars.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letofunc.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/letolist.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/leto_2.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/blowfish.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/common_c.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/lz4.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/lz4net.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/PMurHash.o C:/Users/PROGRAMA/AppData/Local/Temp/hbmk_mm1wy2.dir/hbmk_ca0epr.o -mconsole -static -Wl,--start-group -lhbmemio -lhbct -lrddleto -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainstd -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -liphlpapi -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -s -obin/letodb.exe -LC:/hb32/lib/win/mingw -Llib
31 Out 2018 16:34
>hbmk2 letodbsvc.hbp
>hbmk2 letodb.hbp
{!bcc}-env:__LZ4=yes
31 Out 2018 16:42
>hbmk2 rddleto.hbp
31 Out 2018 17:49
31 Out 2018 17:52
Para criar a LIB que será LINKADA junto com sua aplicação, use:
31 Out 2018 18:12
tem coisas nos hbp que eu nunca vi
mas esse último post seu se fosse o primeiro, moço já teria resolvido tudo
14 Nov 2018 13:36
14 Nov 2018 18:53
rubens escreveu:Vou usar a rddleto.lib por causa da minha compilação com a minigui extends.
15 Nov 2018 18:32
De qualquer forma ainda vou ter que continuar comparilhando/mapeando pastas, correto ?