从c ++函数调用c函数 [英] calling c function from c++ function
本文介绍了从c ++函数调用c函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我有一个.c和.cpp文件.
在这里我想从.cpp文件中调用.c文件中定义的函数
我该怎么办?
请帮助我
预先谢谢您
hi all,
i have one .c and .cpp file.
here i want to invoke a function defined in .c file from a .cpp file
how can i do this?
please help me
Thank you in advance
推荐答案
,如果您已将其声明为.也许您可以编辑问题并显示实际的困难所在.
The same way you would call any C function (such as all those Win32 or standard library calls), assuming you have declared it as extern "C"
. Perhaps you could edit your question and show what your actual difficulty is.
这篇关于从c ++函数调用c函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文