From: Vinzent 'Gadget' Hoefler <nntp-2005-05@t-domaingrabbing.de>
Subject: Re: Calling C++ procedures from Ada - Linkage problem
Date: Tue, 24 May 2005 10:55:05 +0000
Date: 2005-05-24T10:55:05+00:00 [thread overview]
Message-ID: <1473064.DHiecbuf2s@jellix.jlfencey.com> (raw)
In-Reply-To: mailman.125.1116931070.24457.comp.lang.ada@ada-france.org
Ken Resander wrote:
[...]
> /*
> void calltosee ( )
> {
> // called this from a c++ program compiled and linked by
> // VC6. Used disassembler in debug window and
> // found that:
> int h ;
> char dst [ 100 ] ;
> openhandler_c ( &h) ; // this contains a _chkesp call
[...]
Well, it seems that VC++ is generating the stack checking stuff. A web
search seems to reveal that this is only when "VC generates debug
code" (whatever this means). ;) So I'd say, switch VC to "release code
generation" (whatever that might mean) or just declare an Ada routine
called chkesp with C interface (well, "pragma Inline" won't work then,
I suppose).
BTW, according to
<URI:http://www.winehq.com/hypermail/wine-patches/2003/03/att-0132/01-msvcrt_chesp.diff>
the routine is contained in the msvcrt dll.
Vinzent.
--
worst case: The wrong assumption there actually is one.
parent reply other threads:[~2005-05-24 10:55 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <mailman.125.1116931070.24457.comp.lang.ada@ada-france.org>]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox