curl-library
Re: getting libcurl to run with C in codeblocks (mingw-32)
Date: Fri, 2 Dec 2016 06:49:40 -0600
On Thu, Dec 1, 2016 at 11:29 PM, Ray Satiro via curl-library <
curl-library_at_cool.haxx.se> wrote:
No, that is not expected. I imagine you have some incorrect settings. You
> should just have one compiler flags entry. I would delete the two you have
> and start from scratch. There could be instructions on the internet that
> contradict this but here's what worked for me in Code::Blocks:
>
> Build options > Compiler settings > Compiler Flags > New Flag:
>
> Name: curl static
> Compiler flags: -DCURL_STATICLIB
> Linker flags: -lcurl -lcrypt32 -lwldap32 -lws2_32
> Leave everything else as the default
>
> Build options > Linker settings: There should be no curl entry in 'Link
> libraries'
>
> Build options > Search directories > Compiler: C:\foo\curl-7.51.0\include
>
> Build options > Search directories > Linker: C:\foo\curl-7.51.0\lib
>
That worked great- THANKS again!
greg
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-12-02