delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/06/02:30:09

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Gerrit P. Haase" <gerrit DOT haase AT t-online DOT de>
Organization: Esse keine toten Tiere
To: "kalmen chia" <kalmenchia AT hotmail DOT com>
Date: Wed, 6 Jun 2001 08:29:50 +0200
MIME-Version: 1.0
Subject: Re: 1.3.2: question about zlib -undefine referemce to "Compress"
Reply-to: gerrit DOT haase AT t-online DOT de
CC: cygwin AT cygwin DOT com
Message-ID: <3B1DE9FE.6040.E85C52A@localhost>
In-reply-to: <000b01c0ee4f$4c52dd60$03e897ca@localhost>
X-mailer: Pegasus Mail for Win32 (v3.12cDE)

kalmen chia schrieb am 2001-06-06, 14:09:

Dear ,
After I compiled , it gave me this msg.

zc.o(.text+0x159):zc.c: undefined reference to `compress'
collect2: ld returned 1 exit status
make: *** [zc] Error 1

what happends to my code ? TQ for your attention

You need to link against libz:

$ gcc -o z.exe z.c -lz

-gph

-- 
=^..^=

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019