Olá!
Essa versão tem bug demais... Usei muito e peguei muitos erros.
Se não fosse a intervenção do Elch(LetoDB[f]) teria partido para outro. MySQL, MariaDB etc...
Eu uso GCC, não posso te ajudar.
Mas vc pode baixar os fontes do GIT e compilar usando BCC7 que é compatÃvel.
Perde MT, LZ(compressão) entre outras coisas. Mas funciona melhor que o o LetoDB.
https://github.com/elchs/LetoDBf2.5 xHarbour
SERVER: the server itself must be build with Harbour, cannot be done with xHB.
Same applies for utils like console monitor.
CLIENT: client library (RDD) can be build with xHarbour, use the 'rddleto.lib.xbp' definition for
xBuilder. For Windows ( but not for XCC ), it will by default use a second thread ( without HVM ),
so the executable must be linked with a library containing '_beginthreadex()'.
cFlag define: LETO_NO_THREAD=1 set for xHB will disable this and the need for threading function,
[ C-compiler: note that xBuilder doesn't store used C-compiler -- change it on demand.
XCC: can't compile 3rd party 'lz4.c', compile it with PellesC >= 4.5 manually,
and replace it in list of files for xBuilder with resulting 'lz4.obj':
pocc.exe -Fo"obj\lz4.obj" -Ot -I"include" -I"source\3rd\lz4\lib" -I%PATH_XHB%"\include"
-I%PATH_POCC%"\Include" -I%PATH_POCC%"\include\Win" "source\3rd\lz4\lib\lz4.c"
]
DEMO: one single demo 'test_mem.exe.xbp' is designed and tested with PellesC ( POCC ) V8.0 [ >= 6.0 ]
For this lib 'crtmt.lib' is in link list, other C-compiler may replace that "crtmt.lib" with one of
their distribution ( cw32mt.lib, libcmt.lib .. )
XCC, and RDD lib with disabled thread have to remove library from list.
Same way you can build other examples "test_[func|filt|dbf|dbfe|var|file]"
YOUR APP:
like above demo: link a MultiThread C runtime lib,
#include "rddleto.ch" for each '.prg' of a xHB LetoDBf project by xHB switch: "/u+rddleto.ch".
One source file of your project, i suggest that with function main() and Leto_Connect(),
should: REQUEST LETO
(*) Codepage-names of xHB and server build with Harbour may be different, that needs to
set up a 'name translation table' -- see LETO_ADDCDPTRANSLATE()
Saudações,
Itamar M. Lins Jr.