TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
X-To:
"EDUARDO HASBUN ." <[log in to unmask]>
Date:
Sat, 3 Mar 2001 19:59:54 +0100
Reply-To:
Pascal Obry <[log in to unmask]>
Subject:
From:
Pascal Obry <[log in to unmask]>
Content-Transfer-Encoding:
7bit
In-Reply-To:
Content-Type:
text/plain; charset=us-ascii
MIME-Version:
1.0
Parts/Attachments:
text/plain (26 lines)
EDUARDO HASBUN . writes:
 > I need help in importing functions from c++ using ada 95.  The compiler I
 > use, GNAT 3.13 has an example on importing functions, but it doesn't seem
 > to work.  Could somebody please tell me how I can import a function from
 > another language and use it in ada 95?  I would really appreciate your
 > help.

This question is OS and compiler dependant. What C++ compiler do you use ?
Under which OS ?

Are you trying to use GNAT C++ specific pragma or do you want to use standard
Ada import feature ? If the later then you do it the same way you would have
done it for C.

Pascal.

--

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"

ATOM RSS1 RSS2