external C programs using API provided with OpenCascade

How can I call OpenCascade functions from external C programs? For example, I want to write a C program that reads and verifies the validity of a STEP file (using the STEPControl_Reader class). Is this possible? What header files should I include?


Stephane Routelous's picture

I think you cannot.
you have to create a C wrapper to the C++ code, and calling those C functions.


Peter Djalaliev's picture

How about if the external program is in C++?