undefined reference to `_imp__curl_

411 views
Skip to first unread message

Moshe Mordkovych

unread,
Jul 11, 2018, 12:51:59 PM7/11/18
to Harbour Users
Hi!
Can anybody help with


hbmk2 test hbcurl.hbc  -Lc:\curl\lib

hbmk2: Processing local make script: hbmk.hbm
Harbour 3.2.0dev (r1806032230)
Copyright (c) 1999-2018, https://harbour.github.io/

C:/hb32new/lib/win/mingw/libhbcurl.a(core.o):core.c:(.text+0x6b5): undefined reference to `_imp__curl_easy_setopt'
C:/hb32new/lib/win/mingw/libhbcurl.a(core.o):core.c:(.text+0x7f2): undefined reference to `_imp__curl_formfree'
C:/hb32new/lib/win/mingw/libhbcurl.a(core.o):core.c:(.text+0x810): undefined reference to `_imp__curl_slist_free_all'
C:/hb32new/lib/win/mingw/libhbcurl.a(core.o):core.c:(.text+0x827): undefined reference to `_imp__curl_slist_free_all'
C:/hb32new/lib/win/mingw/libhbcurl.a(core.o):core.c:(.text+0x83e): undefined reference to `_imp__curl_slist_free_all'
etc.

Curl : Version 7.60.0 (15 May 2018)


Massimo Belgrano

unread,
Jul 11, 2018, 1:37:02 PM7/11/18
to harbou...@googlegroups.com
no nobody can help!
because you send much mail, who are  routed to all subscribers
without a complete description of all elements
which source describe any source that you wand compile 
in with folder 
Please not reply without a complete post  and complete documentation
we Neetd invent wich test want compile and why?

image.png



--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Massimo Belgrano
Delta Informatica S.r.l. (Cliccami per scoprire 

Moshe Mordkovych

unread,
Jul 11, 2018, 1:53:25 PM7/11/18
to Harbour Users
source is

#include "C:\hb32new\contrib\hbcurl\hbcurl.ch"

proc main()

local fpParams := {}
local curl

curl_global_init()
curl := curl_easy_init()
? curl_version()
return

in separate folder c:\htest

I need it to use curl with new TLS 1.2 which old one doesnt support.

I hope this is complete enough. If not - please ask additional info

Massimo Belgrano

unread,
Jul 11, 2018, 2:32:57 PM7/11/18
to harbou...@googlegroups.com
download as test2.prg in follder max and using 
#include "hbcurl.ch" 
having my harbour and c compiler in path
cd \max
hbmk2 test2 hbcurl.hbc

Moshe Mordkovych

unread,
Jul 11, 2018, 2:58:45 PM7/11/18
to Harbour Users
I did that

if I set

set hb_static_curl=no

the message is :

C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -llibcurl
collect2.exe: error: ld returned 1 exit status
hbmk2: Error: Running linker. 1



when I set it to Yes
set hb_static_curl=yes

it says


C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lcurl
C:/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/7.3.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lssh2
collect2.exe: error: ld returned 1 exit status
hbmk2: Error: Running linker. 1


But when I do :

hbmk2 test2 hbcurl.hbc -Lc:\curl\lib


Then only ssh2 cannot be found

cannot find -lssh2

So the question is : what is ssh2 and where to get it where it supposed to be?

Ash

unread,
Jul 11, 2018, 5:00:25 PM7/11/18
to Harbour Users
Hello Moshe,

Please study the following thread. It may be of some use to you.


Regards.
Ash

Moshe Mordkovych

unread,
Jul 11, 2018, 5:51:31 PM7/11/18
to Harbour Users
There is info how to get Curl, I have it already. Thanks
Reply all
Reply to author
Forward
0 new messages