Return-Path: <tiff-admin@remotesensing.org>
Received: from tee.skynet.be (tee.skynet.be [195.238.3.4])
        by twentyeight.skynet.be (8.12.9/8.12.9/Skynet-MAILSTORE-2.14) with ESMTP id hBN23rnp006233
        for <joris.at.lebbeke@skynet.be>; Tue, 23 Dec 2003 03:03:53 +0100
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com ([208.24.120.42])
        by tee.skynet.be (8.12.9/8.12.9/Skynet-IN-2.32) with ESMTP id hBN23eDa010333
        for <joris.at.lebbeke@skynet.be>; Tue, 23 Dec 2003 03:03:41 +0100
        (envelope-from <tiff-admin@remotesensing.org>)
Received: from yoda.imagelinks.com (localhost.localdomain [127.0.0.1])
	by yoda.imagelinks.com (8.11.6/8.11.2) with ESMTP id hBN22Kl04368;
	Mon, 22 Dec 2003 21:02:20 -0500
Received: from ERC.MsState.Edu (root@Sniper.ERC.MsState.Edu [130.18.14.12])
	by yoda.imagelinks.com (8.11.6/8.11.2) with ESMTP id hBN212l04345
	for <tiff@remotesensing.org>; Mon, 22 Dec 2003 21:01:02 -0500
Received: from pushkarpc (Pushkar-pc.ERC.MsState.Edu [130.18.13.50]); 
          by ERC.MsState.Edu (8.12.10/8.12.6/ERC-Mailhost/1.13) with SMTP; 
          id hBN20s0K017357 for <tiff@remotesensing.org>; 
          Mon, 22 Dec 2003 20:00:54 -0600 (CST)
From: "Pushkar Pradhan" <pushkar@GRI.MsState.Edu>
To: "Tiff@Remotesensing.Org" <tiff@remotesensing.org>
Subject: FW: [Tiff] undefined reference to `TIFFDataWidth'
Message-ID: <MJEBIBGMCDKIGEHPDECCAEMNCFAA.pushkar@erc.msstate.edu>
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.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Message-Flag: Follow up
Sender: tiff-admin@remotesensing.org
Errors-To: tiff-admin@remotesensing.org
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Post: <mailto:tiff@remotesensing.org>
List-Subscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
List-Id: TIFF and libtiff discussion <tiff.remotesensing.org>
List-Unsubscribe: <http://remotesensing.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://remotesensing.org/pipermail/tiff/>
Date: Mon, 22 Dec 2003 20:00:54 -0600
X-UIDL: c4f6a23703928fd648ee6f66da3d9ecf

Sorry I just found out on the libtiff this was added in 3.6.0, so I need to
install 3.6.0.

-----Original Message-----
From: tiff-admin@remotesensing.org
[mailto:tiff-admin@remotesensing.org]On Behalf Of Pushkar Pradhan
Sent: Monday, December 22, 2003 5:59 PM
To: Tiff@Remotesensing.Org
Subject: [Tiff] undefined reference to `TIFFDataWidth'


When I try to use TIFFDataWidth, I get this compiler error:
Redstone[382] pushkar$ gcc -g -o main rgbtolhs-serial.c ip/rgblhs.c
tiff/tiff_misc.c -Iip/ -Ierrs/ -Itiff/ -ltiff -lm
/tmp/ccpBNPef.o(.text+0x349): In function `writeTIFFTags':
/rstc/user1/erc/pushkar/data-fusion/tiff/tiff_misc.c:86: undefined reference
to `TIFFDataWidth'
collect2: ld returned 1 exit status

I'm using 3.6.0 BETA2 libtiff. Was this available only after this version?

I've another question too, I'm calculating the bitspersample tag from
sampleformat tag, will this always give the correct result:
(dType is TIFFDataType) (wtags is just a struct containing all the tags I
want).
  wtags.sampleFormat = dType;
  wtags.bitsPerSample = TIFFDataWidth(dType)*8;

Thanks,
Pushkar Pradhan


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

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