cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1617611 ] libcurl cannot compile statically under Win32

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 17 Dec 2006 15:44:54 -0800

Bugs item #1617611, was opened at 2006-12-18 00:41
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1617611&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: compile or build problem
Group: bad behaviour
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: BrunoProg64 (brunoprog64)
Assigned to: Daniel Stenberg (bagder)
Summary: libcurl cannot compile statically under Win32

Initial Comment:
I use Microsoft Windows XP SP1, in a machine of 700 Mhz and 256 MB of RAM. For compiling I use MinGW and Dev C++.

Basically I downloaded the no-ssl version of libcurl, because I thought it was enogh for me. But, when I tried to compile statically, i get a lot of errors.

This line I used to compile:

g++ curl.cpp -o "curl.exe" -lcurl -lws2_32 -lwinmm

And those are the errors I get:

C:/dev-cpp/bin/../lib/gcc/mingw32/3.4.2/../../../libcurl.a(content_encoding.o)(.
text+0x5d): undefined reference to `inflateEnd'
C:/dev-cpp/bin/../lib/gcc/mingw32/3.4.2/../../../libcurl.a(content_encoding.o)(.
text+0xc7): undefined reference to `inflate'
C:/dev-cpp/bin/../lib/gcc/mingw32/3.4.2/../../../libcurl.a(content_encoding.o)(.
text+0x167): undefined reference to `inflateEnd'
C:/dev-cpp/bin/../lib/gcc/mingw32/3.4.2/../../../libcurl.a(content_encoding.o)(.
text+0x20d): undefined reference to `inflateInit_'
C:/dev-cpp/bin/../lib/gcc/mingw32/3.4.2/../../../libcurl.a(content_encoding.o)(.
text+0x3d9): undefined reference to `zlibVersion'
C:/dev-cpp/bin/../lib/gcc/mingw32/3.4.2/../../../libcurl.a(content_encoding.o)(.
text+0x41e): undefined reference to `inflateInit2_'
C:/dev-cpp/bin/../lib/gcc/mingw32/3.4.2/../../../libcurl.a(content_encoding.o)(.
text+0x471): undefined reference to `inflateInit2_'
collect2: ld returned 1 exit status

The source of the program I try to compile is just one example. Also I define the CURL_STATIC_LIB define.

And I get libcurl from http://devpak.org

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2006-12-18 00:44

Message:
Logged In: YES
user_id=1110
Originator: NO

You're using a libcurl built to use zlib but when you link with this
libcurl you obviously don't link with zlib...

This is not a libcurl bug.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1617611&group_id=976
Received on 2006-12-18

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET