Is there a way to call a C function loaded from a dylib from Swift?
This is my dylib file:
cppdemofile.cpp
#include \"cppdem
In order to use C++ code in Swift, you need to wrap it in C functions or Objective-C classes.
Also see Call a C++ function from Swift