comp.lang.ada
 help / color / mirror / Atom feed
From: CVANOVER@bamanet.ua.edu
Subject: Calling C++ from within ADA
Date: Thu, 3 Nov 1994 12:53:31 GMT
Date: 1994-11-03T12:53:31+00:00	[thread overview]
Message-ID: <CVANOVER.1.0007E49E@bamanet.ua.edu> (raw)

Is there a way to call a C++ procedure from within ADA? I can call a C 
procedure with 

package C_LIB is
        procedure clear_screen;
        procedure sleep_a_moment;
private
        pragma interface(c,clear_screen);
        pragma interface(c,sleep_a_moment);
end C_LIB;

However, when I compile the same C procedure in C++ I get the following error:
0706-317 ERROR: Unresolved or undefined symbols detected:
                 Symbols in error (followed by references) are
                 dumped to the load map.
                 The -bloadmap:<filename> option will create a load map.
.clear_screen

I've tried adding INTERFACE_INFORMATION but it doesn't seem to help.  

I am using IBM AIX on an RS6000.

Thank you
Chris Vanover
The University of Alabama
CVanover@bamanet.ua.edu




             reply	other threads:[~1994-11-03 12:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-11-03 12:53 CVANOVER [this message]
1994-11-03 15:11 ` Calling C++ from within ADA Norman H. Cohen
     [not found] ` <CypvDM.8q5@nntpa.cb.att.com>
1994-11-04 17:31   ` Greg Harvey
1994-11-04 17:46     ` Greg Harvey
1994-11-07  2:52 ` Oliver E. Cole
1994-11-08 15:22 ` Eric Beser
1994-11-08 18:34 ` Richard G. Hash
replies disabled

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