From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5fbaae5b333933d7 X-Google-Attributes: gid103376,public From: Stephen Leake Subject: Re: C++ and Ada Date: 1998/10/23 Message-ID: #1/1 X-Deja-AN: 404332201 References: <70nubo$cg5$1@nnrp1.dejanews.com> Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Newsgroups: comp.lang.ada Date: 1998-10-23T00:00:00+00:00 List-Id: 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