Return-Path: <tiff-bounces@remotesensing.org>
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx010.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j52JZqcM011468
        for <joris.at.lebbeke@skynet.be>; Thu, 2 Jun 2005 21:35:53 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 04A0325D2856; Thu,  2 Jun 2005 15:35:34 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from cgp.pu.ru (vlan3.cgp.pu.ru [195.70.196.209])
	by xserve.flids.com (Postfix) with ESMTP id 4E3AC25D2832
	for <tiff@remotesensing.org>; Thu,  2 Jun 2005 15:35:31 -0400 (EDT)
Received: from wg.pu.ru ([193.124.85.219] verified)
	by cgp.pu.ru (CommuniGate Pro SMTP 4.2.8)
	with ESMTP id 68514801 for tiff@remotesensing.org;
	Thu, 02 Jun 2005 23:35:30 +0400
Received: (from uucp@localhost)
	by wg.pu.ru (8.9.1a/8.9.1) with UUCP id TAA05296
	for tiff@remotesensing.org; Thu, 2 Jun 2005 19:35:30 GMT
Received: from ak4719.spb.edu (localhost [127.0.0.1])
	by ak4719.spb.edu (8.13.3/8.13.3/Debian-6) with ESMTP id j52JWx6n025970
	for <tiff@remotesensing.org>; Thu, 2 Jun 2005 23:32:59 +0400
Received: (from dron@localhost)
	by ak4719.spb.edu (8.13.3/8.13.3/Submit) id j52JWxd6025964
	for tiff@remotesensing.org; Thu, 2 Jun 2005 23:32:59 +0400
From: Andrey Kiselev <dron@ak4719.spb.edu>
Date: Thu, 2 Jun 2005 23:32:59 +0400
To: tiff@remotesensing.org
Subject: Re: [Tiff] trying to compile with different compiler options
Message-ID: <20050602193259.GA23671@ak4719.spb.edu>
Mail-Followup-To: tiff@remotesensing.org
References: <92d3a495050602104860b2e929@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <92d3a495050602104860b2e929@mail.gmail.com>
X-GnuPG-Key: http://www.srces.spb.org/dron/export.home.key
X-Face: "t+se9s~+y~[XUH]L|pmeO3Pt/Q@DNv**S, d@_1-C=}/,
	c%<3Qp]eu!ok<"2lYJm$!9qVcg F?7o*L; |$`6|Q|>Rt-cU%2_y@6tQ|`!Li}TsvZvEKx;
	>fuY=fc(=sX^`7Wmw8%SsR`AvM$a; 0U/eN\ P?B\FTyqD, 0np$U2!*'z_4D,
	VPlFf?bN0&zYf"zF0s!7Tl7?$we)xD0@lL>[h|8bhys0i.g|zLnu@C
	Ti@d]i=[!:j1CB\5/TF[m]`lfHfaqSN[0qn@T3zeosV/[LAss{@p_?],x*j8P_9t[}uHD^X-;
	j~\M! gyTly;fj`}&Y~i{<#bN.#QmkE}#T`dxP.I1\.)_MEN{@#W
User-Agent: Mutt/1.5.6+20040907i
X-Virus-Scanned: ClamAV version 0.84, clamav-milter version 0.84e on ak4719
X-Virus-Status: Clean
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 000000000023ceae.0000031d
X-MSP-STORE: Thu, 02 Jun 2005 21:36:08 +0200
Status:   

On Thu, Jun 02, 2005 at 07:48:33PM +0200, Antoine wrote:
> 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
_______________________________________________
Tiff mailing list: Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
