| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2002.02.01 21:41 "Re: Contrib Win95", by Jason SummersSiddhartha wrote: > > Hi , > > I downloaded Libtiff and i compiled it successfully under both DJGPP and > VC++ 6.0 > > In Contrib\Win95 directory there is a file > Tiff2dib.c , i tried to compile it with DJGPP > > gcc -i tiff2dib.exe tiff2dib.c -ltiff > > And got some errors , i noticed there are some undefined struture references > such as BITMAPHEADERINFO etc. > > Anybody had luck compiling this file , please help me where can i find the > header file which is apparently missing. My experience is that the tiff2dib.c utility included with libtiff is quite broken. If I recall correctly, it has several bugs and even calculates the number of bytes per pixel wrong, so that it couldn't possibly work as-is except perhaps for images with exactly 8 bits per pixel. (I could be wrong though.) BITMAPINFOHEADER (not BITMAPHEADERINFO) is a standard structure in Windows programming - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmeother/graphcnt_1m0j.asp I don't know enough about DJGPP to tell you what you'd need to do. In VC++ 6.0, it should be available if you include <windows.h>. -- Jason Summers |
|||||||