comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.Leake@gsfc.nasa.gov>
Subject: Re: C++ and Ada
Date: 1998/10/23
Date: 1998-10-23T00:00:00+00:00	[thread overview]
Message-ID: <uyaq79ps7.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 70nubo$cg5$1@nnrp1.dejanews.com

yuen3785@my-dejanews.com writes:

> If anyone out there has an example of calling exported Ada functions from C++,
> I would appreciated it.
> 
> I am trying to call a exported Ada function from Microsoft Visual C++.  When I
> am trying to make a link, there are unresolved symbols from one of the Ada
> library object file.  The name of the object file is min_tasking.a and is
> provided by VADS Ada compiler without the source code.  I would like to find
> out if there is a way to use only the symbols that I need and ignore the rest
> of the symbols in the min_tasking.a file

I haven't used VADS, but 'min_tasking.a' sounds like part of the
run-time system. Are you doing anything in Ada that requires tasking?
This includes explicit tasks, as well as delay statements.

You need to arrange for the Ada elaboration and finalization code to
be called from your C++ main. Consult your compiler documentation
about how to do that.

If you'll post the exact code and error messages, maybe we can be more
helpful.

-- Stephe




  reply	other threads:[~1998-10-23  0:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-22  0:00 C++ and Ada yuen3785
1998-10-23  0:00 ` Stephen Leake [this message]
1998-10-23  0:00 ` Jerry van Dijk
  -- strict thread matches above, loose matches on Subject: below --
2008-01-02 22:33 C and ADA Brian
2008-01-02 22:44 ` Harald van Dijk
2008-01-02 22:47 ` Keith Thompson
2008-01-02 23:09 ` Lucretia
2008-01-03  7:38 ` Jerry
1998-10-22  0:00 C++ and Ada yuen3785
replies disabled

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