AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
December 2003

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2003.12.22 23:59 "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: undefined reference to `TIFFDataWidth'", by Andrey Kiselev

2003.12.22 23:59 "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