可以从C ++调用Ada函数吗? [英] Can you call Ada functions from C++?

查看:125
本文介绍了可以从C ++调用Ada函数吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个完全的Ada新手,尽管我在HS期间使用Pascal已有2-3年了。

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

IIRC,可以调用Pascal编译函数来自C / C ++。是否可以调用程序和

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

推荐答案

根据此旧教程,应该可以。

但是,如此线程,您必须小心Ada函数的c ++ extern C定义。

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

这篇关于可以从C ++调用Ada函数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆