curl / Mailing Lists / curl-library / Single Mail


Re: getting libcurl to run with C in codeblocks (mingw-32)

From: Thomas Glanzmann <>
Date: Thu, 1 Dec 2016 10:37:21 +0100

Hello Greg,

> I've spent a few hours trying to run libcurl in codeblocks (GNU GCC
> mingw-32 Compiler),

I'm building on Debian Linux for Windows. However maybe my instructions
help you:

apt-get install git make gcc libx11-dev mingw-w64 libtool
git clone
cd curl
./buildconf CC=i686-w64-mingw32-gcc ./configure --prefix=`pwd`/../local/win32
make -j
make install

Afterwards I'm building using:

`local/win32/bin/curl-config --cc --cflags --libs` -g -s -static -o my.exe my.c -Wall -fno-strict-aliasing -lcurl -lwinmm -lcrypt32 -lwldap32 -lws2_32 -lwinhttp -lole32 -lcredui

List admin:
Received on 2016-12-01