Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx013.isp.belgacom.be (inmx013.isp.belgacom.be [195.238.2.216])
        by mailst006.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i6SK18Ie003449
        for <joris.at.lebbeke@skynet.be>; Wed, 28 Jul 2004 22:01:08 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx013.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i6SK12D5025265
        for <joris.at.lebbeke@skynet.be>; Wed, 28 Jul 2004 22:01:03 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id B4237174CCA; Wed, 28 Jul 2004 16:00:46 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from mail1.vcmails.com (mail1.vcmails.com [67.97.234.236])
	by xserve.flids.com (Postfix) with SMTP id 5DD49174CA6
	for <tiff@remotesensing.org>; Wed, 28 Jul 2004 16:00:43 -0400 (EDT)
Received: (qmail 20251 invoked from network); 28 Jul 2004 18:51:34 -0000
Received: from unknown (HELO toshi) (4.159.107.245)
	by mail1.vcmails.com with SMTP; 28 Jul 2004 18:51:34 -0000
From: "Larry Grill" <larry@nuglyphix.com>
To: "TIFFLIB" <tiff@remotesensing.org>
Date: Wed, 28 Jul 2004 15:00:39 -0500
Message-ID: <EGEELFLLNIGMPKHJFEEEGEOKCPAA.larry@nuglyphix.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
Importance: Normal
Subject: [Tiff] Building libtiff 3.7 with zlib 1.2.1 for windows with Visual
	CPP
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: fd0a3998cfbf2ace5a3c04ceb22b72d9

Hi all,
This applies to building libtiff 3.7 (or 3.6.1) with zlib 1.2.1 for windows
with Visual CPP
I could not get the libtiff.dll or the tools exes to build when linking in
zlib 1.2.1
It worked fine with zlib 1.1.4, but with 1.2.1 I got linker errors from
MSVCRT.LIB

In case anyone else is having the same problem, here's how to fixed it:

In nmake.opt
Change:
LD = link /nologo
To
LD = link /nologo /NODEFAULTLIB:"MSVCRT.LIB"

In Makefile.vc (in the Tools directory)
Change:
$(CC) $(CFLAGS) $*.c $(EXTRA_OBJ) $(LIBS)
To:
$(CC) $(CFLAGS) $*.c /link /NODEFAULTLIB:"MSVCRT.LIB" $(EXTRA_OBJ) $(LIBS)

I'm not much of a batch file and command line kind of guy, so maybe Andrey
or somebody else can do a better job of it. You'll probably want the
conditional control statements for ZLIB support in there.

Larry M. Grill
larry@nuglyphix.com
www.nuglyphix.com


_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
