I have imported some .c and .h files to Xcode. I am trying to a particular function from those files and transfer to my swift project. The function is
void predictX010(const emxArray_char_T *inputString, emxArray_real_T *ypred);
However, when I go to my Swift file I type it out and I see this The photo shows that predictX010() is basically none existent.
I've put all heard "#import predictX010.h", but it seems that Swift is just not recognizing the function. How do I get that function to work in swift?
Edit: Here is emxArray_char_T and emxArray_real_T
struct emxArray_char_T {char *data; int *size; int allocatedSize; int numDimensions; boolean_T canFreeData;};
struct emxArray_real_T { double *data; int *size; int allocatedSize; int numDimensions; boolean_T canFreeData;};