[comp.graphics] Problem with Leffler's libtiff: TIFFDefaultDirectory

jorice@maths.tcd.ie (Jonathan Rice) (07/11/90)

I've been trying to get Sam Leffler's libtiff library going, along with its
assorted tools, and I'm getting a problem. In order to try and test things,
since I have no TIFF images on hand, I'm converting a Sun rasterfile to TIFF
with ras2tiff (that's with two f's - the one in Leffler's tools directory).
BUT, I only get a measly header out of the conversion process - just 8 bytes
long! I traced back through the source to find out that things are bombing out
because TIFFOpen checks the return status of its calls to TIFFDefaultDirectory.
If it's not True it quits. BUT BUT, TIFFDefaultDirectory doesn't return
anything! It's implicitly defined to return int but conceptually it's a void
function. So, what gives? I'm about to see if things work if I just hard-wire
TIFFDefaultDirectory to return True all the time, but surely...

		-- Jonathan

o------------------------o-------------------------o---------------------------o
|     Jonathan Rice      | Email: jorice@cs.tcd.ie | He was a common fly       |
|------------------------| Tel: 353.1.772941 x2156 | With a taste for fashion  |
| Computer Science Dept. | Fax: 353.1.772204       | They were thrown together |
|   Trinity College      |-------------------------| In a heat of passion      |
|      Dublin 2,         |             woof /\___/ |         - "Human Fly",    |
|      Ireland.          |                   /| |\ |          The Horseflies   |
o------------------------o-------------------------o---------------------------o
-- 
o------------------------o-------------------------o---------------------------o
|     Jonathan Rice      | Email: jorice@cs.tcd.ie | He was a common fly       |
|------------------------| Tel: 353.1.772941 x2156 | With a taste for fashion  |
| Computer Science Dept. | Fax: 353.1.772204       | They were thrown together |