LETODB

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: LETODB

Post by esgici »

esgici wrote: So you need either a MinGW compatible library or a library converter ( .lib to .a ) utility.
Found a thing for you :

http://code.google.com/p/lib2a/

I hope that will help you :)

Regards
Viva INTERNATIONAL HMG :D
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: LETODB

Post by t57042 »

The precompiled version of letodb.exe (server side) you find in this link - works ok for me (windows7):
http://bielsys.blogspot.be/2008/07/leto ... -para.html

With manage.exe (also found in above link) I am able to connect to the server.

In the libs/mingw directory of the download you mentioned: http://sourceforge.net/projects/letodb/?source=dlp

is a file librddleto.a, which should be the file to link with your application on the client side.
I made a file rddleto.hbc containing libs=librddleto in the same directory as my source program (letotest.prg).
I still get an error when compiling (undefined reference).

What do I do wrong?

regards
Richard
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: LETODB

Post by esgici »

t57042 wrote:...
I made a file rddleto.hbc containing libs=librddleto in the same directory as my source program (letotest.prg).
I still get an error when compiling (undefined reference).
...
esgici wrote:After having a MinGW compatible library, it's easy to include it to HMG project:
add a line to your project configuration file (.hbc) :

libs=<lib_file_name>

<lib_file_name> is name of your library file, without "lib" prefix and ".a" extension
So, you need :

libs=rddleto

instead of

libs=librddleto

Regards
Viva INTERNATIONAL HMG :D
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: LETODB

Post by t57042 »

So, you need :
libs=rddleto
instead of
libs=librddleto
the filename is: librddleto.a

Richard
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: LETODB

Post by esgici »

t57042 wrote: the filename is: librddleto.a
Yes, but HBMK2 requires without "lib" prefix
Viva INTERNATIONAL HMG :D
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: LETODB

Post by t57042 »

I tried libs=rddleto
same result
Richard
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: LETODB

Post by esgici »

Let's wait experts ;)

Regards
Viva INTERNATIONAL HMG :D
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: LETODB

Post by danielmaximiliano »

t57042 wrote:I tried libs=rddleto
same result
Richard
Try : install server mode daemon

Letodb install

/* Start Letodb */

letodb.exe

/* Stop Letodb */

Letodb stop
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
t57042
Posts: 148
Joined: Tue Mar 16, 2010 9:46 am
Location: belgium

Re: LETODB

Post by t57042 »

Where can I find the syntax and use of .hbc files?

Richard
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: LETODB

Post by esgici »

t57042 wrote:Where can I find the syntax and use of .hbc files?
.hbc files are "configuration" files for use by hbmk2 and this is output of

Code: Select all

hbmk2 -help 
command ( Harbour Release : 18724 ).
hbmkHelp.zip
hbmk2 help output ( Hb-Rel- 18724 )
(6.35 KiB) Downloaded 224 times
Viva INTERNATIONAL HMG :D
Post Reply