在C中调用C ++函数 [英] Invoking C++ functions in C
本文介绍了在C中调用C ++函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在C程序中调用C ++函数?如果是这样的话?
问候
Srinath
Is it possible to call a C++ function in C program ? if so ?
Regards
Srinath
推荐答案
>是否可以在C程序中调用C ++函数?如果是这样的话?
你应该可以打电话给externC来自C程序的C ++函数。
-
Razvan Cojocaru
KeyID:1024D / 04CA34DE
> Is it possible to call a C++ function in C program ? if so ?
You should be able to call extern "C" C++ functions from a C program.
--
Razvan Cojocaru
KeyID: 1024D/04CA34DE
我要求的其他方式?
I am asking for otherwise ?
externC用于在C中包含C ++代码,反之亦然..我是
对吧???
smreddy写道:
Is extern "C" be used to include C++ code in C and vice versa..Am i
right???
smreddy wrote:
我要求的不是吗?
这篇关于在C中调用C ++函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文