Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

using libcurl (having some .dll missing)

So I'm having issue getting libcurl up on visual studio 2017
I download the x86(32bit) version on this page for windows https://curl.haxx.se/download.html


[Image: el02AJx.png]

(this one to be exact)

I make a dependencies folder
[Image: wP1wz0K.png]

And I take what I got from libcurl 32bit binary (lib and include folder)
inside it
[Image: iaYdbLG.png]

inside the lib one
[Image: meAFhI7.png]

inside the include one
[Image: A1c3qLs.png]



I then add them to my console app project
https://i.imgur.com/pySw1wx.png ( include one)
https://i.imgur.com/VJGHAME.png (lib one )


so now I try to build it https://i.imgur.com/R9BWTQz.png
seems to work, no errors, and then when I do ctrl + f5 , I get dll errors
libcurl.dll missing and few others


What to do ?  🤝

edit; couldn't figure out statically so
I just did it as a dynamic link library
and it worked fine. so gucci gang on me boys!!
#define CURL_STATICLIB needs to be used to use static libraries for curl IIRC. You can add this to the preprocessor definitions location.
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer]
(Oct 21, 2018 03:46 PM)0xDEAD10CC Wrote:  #DEFINE CURL_STATICLIB needs to be used to use static libraries for curl IIRC. You can add this to the preprocessor definitions location.

[Image: rUq2Usz.png]

is this the way to do it?

because [Image: iRQro9g.png]


Also, where to find that information on the official website?
No.. That's how you'd do it in source code, I'd read the docs to see how these options work.
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer]
Added to source code, same problem when opening the file, alot of .dll errors.
and on libcurl docs..dont see anything about .dll files
It needs to be ABOVE your include. Read the curl docs, there's information about CURL_STATICLIB right in there. All you had to do was define it in the properties though.

Instead of saying that it doesn't work without showing exactly what you're doing... I've given you all the information you need. I think maybe you should do some research and look up some examples? 🤨
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer]
you can find the libcurl.dll in the bin folder copy it to the bin project folder
[Image: bitcoin.png] Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
(Oct 22, 2018 02:23 AM)HFDone Wrote:  you can find the libcurl.dll in the bin folder copy it to the bin project folder

He's trying to link against static libraries..
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer]
(Oct 22, 2018 09:28 AM)0xDEAD10CC Wrote:  He's trying to link against static libraries..

since he is using vs he need to complie it to lib
https://stackoverflow.com/a/20985925
https://www.youtube.com/watch?v=wjNyT5PhNvI
[Image: bitcoin.png] Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
(Oct 22, 2018 02:23 AM)HFDone Wrote:  you can find the libcurl.dll in the bin folder copy it to the bin project folder

I think 0xdead is correct about me needing to read the docs (even though idk where to look for in the docs, as i only see some explainations/examples of using the functions in it)

since adding libcurl.dll in the bin project == i get other .dll error
and if i find the others .dll missing from the internet and put them in the same folder as my build
i get even more newer .dll errors...
(Oct 22, 2018 01:15 PM)pmtobefriend Wrote:  I think 0xdead is correct about me needing to read the docs (even though idk where to look for in the docs, as i only see some explainations/examples of using the functions in it)

since adding libcurl.dll in the bin project == i get other .dll error
and if i find the others .dll missing from the internet and put them in the same folder as my build
i get even more newer .dll errors...

check the links in my last reply
[Image: bitcoin.png] Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
(Oct 22, 2018 01:23 PM)HFDone Wrote:  check the links in my last reply

but these two are saying the exact thing i've done as shown in the screenshots on my thread?
you cant use the a lib files with visual studio you need to compile the code to lib files
all the info in the links
[Image: bitcoin.png] Be Nice For Once 15hVUVz7xA4kazHdk2BuErENGCskVwjYXP
(Oct 22, 2018 09:28 AM)0xDEAD10CC Wrote:  He's trying to link against static libraries..

Wait mate, can you confirm one thing, did I download the right thing in the thread? the right package for visual studio 2017 ?
or is it something else for visual studio? 🤝
(Oct 22, 2018 07:32 PM)pmtobefriend Wrote:  Wait mate, can you confirm one thing, did I download the right thing in the thread? the right package for visual studio 2017 ?
or is it something else for visual studio? 🤝

*.dll.a is typically intended for being resolved by a dynamic library. If this is for VS though your best bet is to use a dynamic lib or compile the lib for VS.
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer]


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by SecurifierJan 17, 2020 07:20 AM 12 416 Jan 17, 2020 07:20 AM
Last Post: SIM-3602340
[C] by pmtobefriendNov 17, 2018 02:31 PM 0 109 Nov 17, 2018 02:31 PM
Last Post: pmtobefriend
[C] by RagZorroNov 21, 2017 12:27 PM 0 193 Nov 21, 2017 12:27 PM
Last Post: RagZorro