AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2003.12.23 02:00 "FW: [Tiff] undefined reference to `TIFFDataWidth'", by Pushkar Pradhan
2003.12.22 23:59 "[Tiff] undefined reference to `TIFFDataWidth'", by Pushkar Pradhan
2003.12.23 08:32 "Re: [Tiff] undefined reference to `TIFFDataWidth'", by Andrey Kiselev

2003.12.23 02:00 "FW: [Tiff] undefined reference to `TIFFDataWidth'", by Pushkar Pradhan

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