Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: "Gerrit P. Haase" <gerrit.haase@t-online.de>
Organization: Esse keine toten Tiere
To: "kalmen chia" <kalmenchia@hotmail.com>
Date: Wed, 6 Jun 2001 08:29:50 +0200
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: Re: 1.3.2: question about zlib -undefine referemce to "Compress"
Reply-to: gerrit.haase@t-online.de
CC: cygwin@cygwin.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

