I think you cannot.
you have to create a C wrapper to the C++ code, and calling those C functions.
Commenter-1
Archived discussion
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?
Thanks,
Peter
[email removed]
Discussion
Posts are displayed in their archived order.
I think you cannot.
you have to create a C wrapper to the C++ code, and calling those C functions.
Commenter-1
How about if the external program is in C++?