cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Can I link libcurl.a in a Windows 7 (64 bit) environment?

From: Cory Nelson <phrosty_at_gmail.com>
Date: Fri, 6 May 2011 16:03:04 -0700

On Fri, May 6, 2011 at 3:14 PM, Johan Vermeire <jvme38_at_gmail.com> wrote:
> Hi,
>
> Can I link libcurl.a in a Windows 7 (64 bit) environment?
> I'm struggling with undefined references:
>
> mingw32-make VERBOSE=1 all
> 'Building ' simple
> mingw32-g++ simple.o -LE:/curl-7.21.6-devel-mingw32/lib -lws2_32
> -lcurl -o simple

It looks like you need to move the -lws2_32 to after the -lcurl.

-- 
Cory Nelson
http://int64.org
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-07