AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

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

2003.12.22 23:59 "[Tiff] undefined reference to `TIFFDataWidth'", by Pushkar Pradhan

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