2005.06.09 14:36 "[Tiff] problem with inlining of find[01]span in tif_fax3.c", by Thom DeCarlo

2005.06.09 14:36 "[Tiff] problem with inlining of find[01]span in tif_fax3.c", by Thom DeCarlo

Hi,

I'm getting a compile error in tif_fax3.c when compiling this morning's cvs on a WinXP computer using VS7.1.

tif_fax3.c
tif_fax3.c(780) : error C2054: expected '(' to follow 'inline'
tif_fax3.c(781) : error C2085: 'find0span' : not in formal parameter list
tif_fax3.c(781) : error C2143: syntax error : missing ';' before '{'
tif_fax3.c(839) : error C2054: expected '(' to follow 'inline'
tif_fax3.c(840) : error C2085: 'find1span' : not in formal parameter list
tif_fax3.c(840) : error C2143: syntax error : missing ';' before '{'
tif_fax3.c(925) : warning C4013: 'find0span' undefined; assuming extern
returning int
tif_fax3.c(930) : warning C4013: 'find1span' undefined; assuming extern
returning int
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET
2003\VC7\BIN\nmake.exe"' : return code '0x2'
Stop.

It appears to have something to do with the inline modifier of the function definition. If I remove the "inline" then tif_fax3.c compiles properly.

Thom DeCarlo
---------------------------------
Where are we going and why am I in this handbasket?