Received: by smtp02.oce.nl (4.1/SMI-4.1)
	id AA05957; Sat, 17 Oct 98 16:09:31 +0200
Received: from sgi.sgi.com (SGI.COM [192.48.153.1])
	by oce.nl (8.9.0/8.9.0) with ESMTP id PAA02482
	for <rvdt@oce.nl>; Sat, 17 Oct 1998 15:58:45 +0200 (MET DST)
Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) 
	by sgi.sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam:
       SGI does not authorize the use of its proprietary
       systems or networks for unsolicited or bulk email
       from the Internet.) 
	via ESMTP id GAA05114; Sat, 17 Oct 1998 06:57:19 -0700 (PDT)
	mail_from (owner-tiff@sgi.engr.sgi.com)
Received: (from majordomo-owner@localhost)
	by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF)
	id GAA68319
	for tiff-list;
	Sat, 17 Oct 1998 06:16:22 -0700 (PDT)
	mail_from (owner-tiff@sgi.sgi.com)
Received: from sgi.sgi.com (sgi.engr.sgi.com [192.26.80.37])
	by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF)
	via ESMTP id GAA16747
	for <tiff-relay@cthulhu.engr.sgi.com>;
	Sat, 17 Oct 1998 06:16:03 -0700 (PDT)
	mail_from (owner-tiff@sgi.sgi.com)
Received: from oxe.cs.umu.se (oxe.cs.umu.se [130.239.40.14]) 
	by sgi.sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam:
       SGI does not authorize the use of its proprietary
       systems or networks for unsolicited or bulk email
       from the Internet.) 
	via ESMTP id GAA00277
	for <tiff@sgi.com>; Sat, 17 Oct 1998 06:15:57 -0700 (PDT)
	mail_from (niclas@cs.umu.se)
Received: from pixel.cs.umu.se (rfc1413 says niclas@pixel.cs.umu.se [130.239.40.20]) by oxe.cs.umu.se (8.8.8/8.8.8) with ESMTP id PAA21034; Sat, 17 Oct 1998 15:15:46 +0200 (MET DST)
Received: from localhost (rfc1413 says niclas@localhost) by pixel.cs.umu.se (8.8.8/8.8.8) with ESMTP id PAA20681; Sat, 17 Oct 1998 15:15:41 +0200 (MET DST)
X-Authentication-Warning: pixel.cs.umu.se: niclas owned process doing -bs
Date: Sat, 17 Oct 1998 15:15:41 +0200 (MET DST)
From: Niclas Borlin <niclas@cs.umu.se>
To: Rajat Varma <rajat@ncbs.tifrbng.res.in>
Cc: tiff@sgi.com
Subject: Re: Building Tiff under w95
In-Reply-To: <Pine.LNX.3.95.981015224010.7028A-100000@ncbs.tifrbng.res.in>
Message-Id: <Pine.GSO.3.95.981017150307.20479A-100000@pixel.cs.umu.se>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=iso-8859-1
Content-Transfer-Encoding: 8BIT
Sender: owner-tiff@fddi-sgi.sgi.com
Precedence: bulk

On Thu, 15 Oct 1998, Rajat Varma wrote:

> Hi!
> 
> 	I hope this mailing list is still alive. I have a question which
> has been asked on this mailing list before and thus apologies for asking
> this again. Where do I get a step by step procedure for building the tiff
> libraries for W95, using Borland C++ v4.5. I am a little confused as to
> which files I must copy from linux to w95. It is so simple for linux, I
> hope a similar simple procedure exists for w95.
> 
> thanks
>  
> hoping to hear from someone soon

Hi Rajat,

I have built libtiff för w95 with MSC++ 4.1. It was pretty
straight-forward, so perhaps the same will work for BC++ 4.5.

I simply created a project workspace or type static library (you may
want to choose DLL) and added the following files to it:

fax3sm.c, getopt.c, tif_aux.c, tif_close.c, tif_coded.c,
tif_compress.c, tif_dir.c, tif_dirinfo.c, tif_dirread.c, tif_dirwrite.c, 
tif_dumpmode.c, tif_error.c, tif_fax3.c, tif_flush.c, tif_getimage.c,
tif_jpeg.c, tif_lzw.c, tif_next.c, tif_open.c, tif_packbits.c, 
tif_pixarlog.c, tif_predict.c, tif_print.c, tif_read.c, tif_strip.c,
tif_swap.c, tif_thunder.c, tif_tile.c, tif_version.c, tif_warning.c,
tif_win32.c, tif_write.c, tif_zip.c

I also had to add the following preprocessor definitions: _WINDOWS and
__WIN32__ (I think you could do with only one of them, but I don't
remember), since only WIN32 was defined by MSC++.

Compiles with lots of warnings, but works OK. (As long as you avoid
16-bit single-channel data, but that's another story...)

Good luck!

/Niclas
--
Niclas Borlin                       email: Niclas.Borlin@cs.umu.se
Department of Computing Science     phone: (+46) 90-786 68 32     
Umea University                       fax: (+46) 90-786 61 26    
S-901 87 Umea, SWEDEN            lat/long: 63.49 N, 20.19 E
--
"Computers in the future may weigh no more than 1.5 tons."
Popular Mechanics, forecasting the relentless march of science, 1949.

