TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Pascal Obry <[log in to unmask]>
Sat, 3 Mar 2001 19:59:54 +0100
text/plain (26 lines)
 > 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 Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--| "The best way to travel is by means of imagination"