cURL / Mailing Lists / curl-library / Single Mail


Re: Compiling libcurl with C++ in code blocks

From: Dan Fandrich <>
Date: Thu, 20 Mar 2014 23:50:29 +0100

On Thu, Mar 20, 2014 at 11:14:34AM -0400, wrote:
> Hello I am trying to use libcurl with c++ in code blocks and I am not able to
> correctly link it to my projects. Is there a tutorial I can view to get a
> better idea of how to make the libcurl library work?
> Ive downloaded the m,ost recent curl zip file. Extracted it to my codeblocks
> program file. I linked the include and lib files. I have compiled an example
> program I found online but that I wentto use a program with the headers, type.h
> and easy.h but it would not compile. I downloaded the curlpp c++ wrapper
> thinking it was an issue with that and its still not running.
> How exactly can I get the new 7.35 to work on c++ in codeblocks. Thank you.

libcurl is written in C, not C++, so it will be difficult if not impossible to
compile it with a C++ compiler unaltered. You can use the curlpp wrapper, but
you'll still need to compile libcurl with a C compiler somehow. I'm not
familiar with what code blocks is, so I can't comment more specifically.

>>> Dan
List admin:
Received on 2014-03-20