UpQuark
UpQuark

Reputation: 801

C++: How do you run an executable in windows that uses libcurl?

I wrote a utility to grab information off the web using libcurl and written and compiled using Cygwin on a Windows 7 machine. I'd like to be able to run the executable in the windows environment, but when I do I get the error "The program can't start because cygcurl-4.dll is missing from your computer." I'm not sure how to resolve this, because even if I install libcurl for windows it seems like it's looking specifically for the Cygwin version. Ideally I'd like to figure out how to make the program self contained so it can function without people having to install any libraries themselves.

Upvotes: 0

Views: 438

Answers (2)

Mihai Todor
Mihai Todor

Reputation: 8239

In order to make your program self-contained, you should try to compile libcurl on Windows as a static library (a .lib file) without cygwin. Some people say that it is doable. If you're unlucky, maybe you should try some other similar library.

Upvotes: 0

Brainbot
Brainbot

Reputation: 365

"The program can't start because cygcurl-4.dll is missing from your computer."
You only need to distribute cygcurl-4.dll with your executable to solve this (put the dll into the same folder).

It should be located in the binaries folder of Cygwin.

Upvotes: 1

Related Questions