Reputation: 2290
I have written a MATLAB 2019a function that I want to export via codegen. I want to run this C function on my iPhone. Here is how I am exporting the function via codegen:
When I export it, a very large portion of my .h files have this include header:
#include "omp.h"
XCode states that 'omp.h' file not found.
This is odd to me, as when I've exported on older Matlab versions never was omp.h file included. Looking around the net, there are several questions that talk about this missing file, such as :
Xcode C++ omp.h file not found
However, the authors of this question seem to advertently want it. I suspect that I am just running the MATLAB codegen incorrectly, thus requiring it's use.
Questions:
Should I export differently via codegen to allow my code to work on an iPhone?
If I exported correctly, where would I want to fetch the omp.h file from in order to run the exported code on an iPhone?
Upvotes: 1
Views: 788
Reputation: 2290
I ended up finding an option to disable it, by selecting no in the image below, and it removed the code from having omp.h
Upvotes: 2