cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem linking on mingw

From: Ben Greear <greearb_at_candelatech.com>
Date: Mon, 04 Feb 2013 14:40:12 -0800

On 02/04/2013 02:05 PM, Ben Greear wrote:
> I patched the curl tool to allow some new commands, some of which
> required Curl_inet_pton.
>
> This links fine on Linux, but when compiling with mingw (on linux),
> I'm getting the linking problem below.
>
> If I manually add: ../lib/.libs/libcurl_la-inet_pton.o to the link objects,
> then it links fine.
>
> Any idea on how to fix this properly?

Ahhh, google read my mind and pointed me to an old post on the mailing
list that pointed me in the right direction:

I just needed to add to Makefile.inc:

--- a/src/Makefile.inc
+++ b/src/Makefile.inc
@@ -13,6 +13,7 @@ CURLX_ONES = \
         ../lib/strtoofft.c \
         ../lib/strdup.c \
         ../lib/rawstr.c \
+ ../lib/inet_pton.c \
         ../lib/nonblock.c

Thanks,
Ben

-- 
Ben Greear <greearb_at_candelatech.com>
Candela Technologies Inc  http://www.candelatech.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-04