C的是不能直接调用C++的
你可以封装一个库
C++的,里面用extern "C"
封装函数,用这个函数调用C++的库
然后 你的C语言程序,调用这个中转库的函数就好。
比如
在你C++库里面,有一个void my_func(int)的话,直接调用my_func是不可能的
在中转库写
extern "C"{ void my_func_c(int a) { my_func(a); }}
然后在纯C程序中, 调用my_func_c就好了。