include hbcurl

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

mlnr
Posts: 126
Joined: Fri Aug 28, 2015 1:52 pm
DBs Used: DBF

include hbcurl

Post by mlnr »

Hello,

How can i include hbcurl to my project? I'm tried add libs=hbcurl line to the configuration in IDE.
What i'm doing wrong?

Thank you for your help.

Gabor
Best regards,
Gabor
mlnr
Posts: 126
Joined: Fri Aug 28, 2015 1:52 pm
DBs Used: DBF

Re: include hbcurl

Post by mlnr »

This is the error message:
error.jpg
error.jpg (228.13 KiB) Viewed 5953 times
How can i add option hbcurl.hbc?

Gabor
Best regards,
Gabor
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: include hbcurl

Post by mol »

You can try
Libs=curl
(without hb...)
User avatar
serge_girard
Posts: 3158
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: include hbcurl

Post by serge_girard »

Gabor,

I don't know anything about curl (even don't know what it is...) but I found this:

#require "hbcurl" in HARBOUR\contrib\hbcurl samples.

See those samples !

Serge
There's nothing you can do that can't be done...
mlnr
Posts: 126
Joined: Fri Aug 28, 2015 1:52 pm
DBs Used: DBF

Re: include hbcurl

Post by mlnr »

The cURL is a library for transfering data, SOAP, HTTP POST request etc.
I used it in Harbour without problem, but i have to use in HMG.
If i don't modify the configuration, then show me the first error message (error.jpg). It is ok, because i don't linked the library.
Marek, i'm tried without hb, but nothing change. :(
After i wrote the libs=hbcurl in hbc file (configuration), changed the message (error2.jpg)
error2.JPG
error2.JPG (128.69 KiB) Viewed 5937 times
Best regards,
Gabor
User avatar
pctoledo
Posts: 123
Joined: Wed Aug 25, 2010 10:45 am
Location: Araçatuba - SP - Brazil
Contact:

Re: include hbcurl

Post by pctoledo »

Try...

libs=hbcurl,hbcurls
Regards/Saludos,

Toledo

Clipper On Line
mlnr
Posts: 126
Joined: Fri Aug 28, 2015 1:52 pm
DBs Used: DBF

Re: include hbcurl

Post by mlnr »

Toledo,
Nothing had changed.
Best regards,
Gabor
User avatar
dragancesu
Posts: 920
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: include hbcurl

Post by dragancesu »

It's look like problem with SqlLite, not include by default

Look at <disk>:\HMG<version>\hmg.hbc

and add lines like PCtoledo say, one by one line
mlnr
Posts: 126
Joined: Fri Aug 28, 2015 1:52 pm
DBs Used: DBF

Re: include hbcurl

Post by mlnr »

Working!!!

The solution is:
copy libhbcurl.a to \lib
copy libhbcurls.a to \lib
copy liblibcurl.a to \lib
run BuildLib.bat

add the next 3 lines to .hbc
libs=hbcurls
libs=hbcurl
libs=libcurl

and done... :)
This link help for me viewtopic.php?f=24&t=3489&hilit=hbcurl&start=10#p32156

Thank you for your help.
Best regards,
Gabor
User avatar
serge_girard
Posts: 3158
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: include hbcurl

Post by serge_girard »

I can't find liblibcurl.a ?
The other 2 I found.

Somebody?

Serge
There's nothing you can do that can't be done...
Post Reply