Search code examples
c++cadacross-language

Can you call Ada functions from C++?


I'm a complete Ada newbie, though I've used Pascal for 2-3 years during HS.

IIRC, it is possible to call Pascal compiled functions from C/C++. Is it possible to call procedures & functions written in Ada from C++?


Solution

  • According to this old tutorial, it should be possible.

    However, as illustrated by this thread, you must be careful with the c++ extern "C" definitions of your Ada functions.