LETODB

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
esgici
Posts: 4514
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Re: LETODB

Post by esgici » Tue Dec 04, 2012 11:41 am

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
Has thanked: 2 times
Been thanked: 4 times

Post by t57042 » Tue Dec 04, 2012 11:49 am

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: 4514
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Post by esgici » Tue Dec 04, 2012 11:57 am

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
Has thanked: 2 times
Been thanked: 4 times

Post by t57042 » Tue Dec 04, 2012 12:43 pm

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

Richard

User avatar
esgici
Posts: 4514
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Post by esgici » Tue Dec 04, 2012 12:53 pm

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
Has thanked: 2 times
Been thanked: 4 times

Post by t57042 » Tue Dec 04, 2012 1:11 pm

I tried libs=rddleto
same result
Richard

User avatar
esgici
Posts: 4514
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Post by esgici » Tue Dec 04, 2012 2:17 pm

Let's wait experts ;)

Regards
Viva INTERNATIONAL HMG :D

User avatar
danielmaximiliano
Posts: 2149
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 162 times
Been thanked: 26 times
Contact:

Post by danielmaximiliano » Tue Dec 04, 2012 2:20 pm

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

Letodb install

/* Start Letodb */

letodb.exe

/* Stop Letodb */

Letodb stop
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.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
Has thanked: 2 times
Been thanked: 4 times

Post by t57042 » Wed Dec 05, 2012 12:19 pm

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

Richard

User avatar
esgici
Posts: 4514
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 389 times
Been thanked: 111 times
Contact:

Post by esgici » Wed Dec 05, 2012 12:39 pm

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 109 times
Viva INTERNATIONAL HMG :D

Post Reply