cURL / Mailing Lists / curl-library / Single Mail


Re: libcurl in VC 2008

From: Arun venkatesh <>
Date: Thu, 18 Aug 2011 16:46:30 +0530

hi Travis

im not sure on your query but here are the things which i came across
while building an ftp application using libcurl on windows visual
studio 2008

ive downloaded curl-7.21.7-devel-mingw32 and extracted in to "F:/"
directory. u can choose any directory of your choice. i would say this
as <install-dir>

for header files
"Properties->C/C++->Additonal Include Directory" should be set to

for just compilation this should help. However u might need to have
additional static library references for linking your application code
with curl

the static libraries should be given in
"Properties->Linker->Input->Additional Dependencies". In my case these
libraries are "libcurl.a" and "libcurldll.a".
The look up path for these libraries is added to the
"Properties->Linker->General->Additional Library Directories". In my
case the look up directory path is

if every thing is proper, then linking should go through..

when u try to run the application, the curl looks for run time
libraries or dlls. curl dlls are located in
""<install-dir>/curl-7.21.7-devel-mingw32/bin". im not sure how i can
specify dll paths in vs2008, alternatively u can copy all of the dlls
into the the directory where the exe for your project is getting

i think the above should help


On Thu, Aug 18, 2011 at 1:06 AM, Travis Dimmig <> wrote:
> I am trying to build a project in VC 2008 that makes use of libcurl.  I used
> the libcurl.vcproj file to add the libcurl project to my solution.  I built
> it with the “Release DLL” configuration, and then added a reference to my
> project for libcurl.  Is there more that has to be done?  How do I include
> the header files so I can make use of the curl_easy functions?
> I’m new to Visual Studio, so apologies in advance if this question is
> trivial.
> Travis Dimmig
> Software Development Specialist
> Impulse Point
> -------------------------------------------------------------------
> List admin:
> Etiquette:

Apologizing doesn't mean that you are wrong and the other person is
right. It only means that you value the relationship much more than
your EGO
List admin:
Received on 2011-08-18