2005.06.02 17:48 "[Tiff] trying to compile with different compiler options", by Antoine

2005.06.02 19:32 "Re: [Tiff] trying to compile with different compiler options", by Andrey Kiselev

I see that it is possible to compile in __stdcall on the cl, so it turns out that things aren't so bad for trying to call from vb6 - or are they:

        cl /nologo /Ox /MD /Gz /W3 -I.   -DCHECK_JPEG_YCBCR_SUBSAMPLING -DDEFAUL
T_EXTRASAMPLE_AS_ALPHA -DSTRIPCHOP_DEFAULT=TIFF_STRIPCHOP -DLOGLUV_SUPPORT -DNEX
T_SUPPORT -DTHUNDER_SUPPORT -DLZW_SUPPORT -DPACKBITS_SUPPORT -DCCITT_SUPPORT -DT
IF_PLATFORM_CONSOLE -DFILLODER_LSB2MSB  /c tif_dirinfo.c
tif_dirinfo.c
tif_dirinfo.c(326) : error C2152: 'function' : pointers to functions with differ
ent attributes
tif_dirinfo.c(326) : warning C4024: 'qsort' : different types for formal and act
ual parameter 4
tif_dirinfo.c(422) : error C2152: 'function' : pointers to functions with differ
ent attributes
tif_dirinfo.c(422) : warning C4024: 'bsearch' : different types for formal and a
ctual parameter 5
tif_dirinfo.c(450) : error C2152: 'function' : pointers to functions with differ
ent attributes
tif_dirinfo.c(450) : warning C4024: 'bsearch' : different types for formal and a
ctual parameter 5
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\N
MAKE.EXE"' : return code '0x2'
Stop.

It compiles fine if I leave the parameter in nmake.opt at GX, but fails here if I change to Gz. Is this just going to be an impossible task? Can someone with some winders C knowledge comment on this?

Antoine,

That is known deficiency and we have a corrsponding report in Bugzilla (#727). The functions, passed to sort/search routines, should be declared as __cdecl.

Regards,
Andrey

Andrey V. Kiselev
Home phone: +7 812 5970603 ICQ# 26871517