Bugs item #1617611, was opened at 2006-12-17 18:41
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1617611&group_id=976
Received on 2006-12-18