Why am I unable to use MEX on Solaris 10 in MATLAB 7.0.4 (R14SP2)?
Show older comments
I am using the Solaris 10 ANSI C compiler to compile the yprime.c MEX-file located in $MATLAB/extern/examples/mex (where $MATLAB is the MATLAB installation directory, which is returned by typing "matlabroot" at the MATLAB command prompt). When I execute the following code:
mex yprime.c
I receive the following error:
"/usr/include/sys/feature_tests.h", line 332: #error: "Compiler or
options invalid for pre-UNIX 03 X/Open applications and pre-2001
POSIX applications"
cc: acomp failed for yprime.c
mex: compile of 'yprime.c' failed.
??? Error using ==> mex
Unable to complete successfully
Accepted Answer
More Answers (0)
Categories
Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!