This library exports a class or a set of functions?
If it's only functions, they can be declared with extern "C", so you can call them from the C code. Or you will need to wrap this functions with this extern "C" like:
#ifndef cpluplus
extern "C"
{
#endif
//the functions' declarations are here
#ifndef cpluplus
}#endif
If the library exports a class or classes, you will design a wrapper with a static objects of these classes and make functions that will call the methods of these objects.
Main Topics
Browse All Topics





by: Let_Me_BePosted on 2009-10-28 at 10:39:03ID: 25686006
Well, if the library doesn't have a C binding, you will have to write your own.