2005.06.21 14:53 "[Tiff] VS7.1 compile problems", by Thom DeCarlo

2005.06.21 15:11 "Re: [Tiff] VS7.1 compile problems", by Bob Friesenhahn

I'm having many problems compiling the latest libtiff (downloaded from cvs this morning). I am using VS7.1 on WinXP.

Problem 1: There is something flaky about the handling of the inline declaration in tif_fax3.c functions find0span and find1span. I had to comment out the word "inline" on lines 779 and 838 to get the file to compile.

VC++ uses '__inline' so adding the define

#define inline __inline

should fix the compile problem. Of course this needs to be conditional on the compiler.

Problem 3: Now I'm trying to find the proper replacement for the unix functions read, write, lseek, close, open, and getopt. I'm getting lots of warnings about these things being undefined.

Most of these have underbar equivalents in Widnows (_write).

Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/