comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Calling Ada from C++ (MS Visual C++)
Date: 05 Apr 2002 13:18:02 -0500
Date: 2002-04-05T18:24:02+00:00	[thread overview]
Message-ID: <u1yduhuw5.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 3ab585c8.0204050030.3d94e692@posting.google.com

julian_robbins@bigfoot.com (Julian Robbins) writes:

> So, using GNAT I believe that I can include the 'adainit()' and
> 'adafinal()' in the binding stage using 'gnatbind -n mathutil.ali'.
> However, this seems to produce a .o file that I could then only use
> with gnatlink to link the C++ objects and Ada objects together. This I
> can not do - I need to use MS Visual Studio to link the final
> executable, including any relevant Ada objects.

You can link the .o file containing adafinal() and adainit() with your
C++ code, same as any other Ada .o.

-- 
-- Stephe



  reply	other threads:[~2002-04-05 18:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-05  8:30 Calling Ada from C++ (MS Visual C++) Julian Robbins
2002-04-05 18:18 ` Stephen Leake [this message]
2002-04-11  8:51   ` Julian Robbins
2002-04-11 17:15     ` Stephen Leake
2002-04-16 12:27       ` Karel Miklav
2002-04-16 14:07         ` Stephen Leake
  -- strict thread matches above, loose matches on Subject: below --
2002-04-05 10:26 Caldwell Ian
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox