I'm not sure if this is a question for MATLAB answers, or whether it belongs somewhere like stackoverflow, since it concerns the handling of C++ code which has been generated from MATLAB code.
Essentially I have several functions, all of which pass arrays in and out of themselves. The C++ generated code has provided header and source files to define an emxArray for the array I/O of each function. The problem is that, for each MATLAB function, its respective emxArray header/source uses the same definitions e.g.
This creates a headache when building the code. I get a message like "struct emxArray_real32_T from function A already defined in function B".
Is it a case of renaming the emxArray for each function so that their names are specific to their function? e.g.