I have some .C files associated with a toolbox I recently downloaded. My C compiler is XCode 6.2 and I'm running Yosemite OS 10.10.2 on a 64-bit Macbook Pro. My version of Matlab is R_2015A.
mex -setup indicates the Matlab will use XCode as the compiler, but I run into errors when trying to create the mex files.
Here's one example, where I've tried to compile the file "ArrayOperations.c:"
> mex ArrayOperations.c Building with 'Xcode with Clang'.
"Error using mex Undefined symbols for architecture x86_64: "_mexFunction", referenced from: -exported_symbol[s_list] command line option ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)"
Does anyone have insights as to what the problem is?