Technical Solutions
Why am I unable to use MEX on Solaris 10 in MATLAB 7.0.4 (R14SP2)?
Date Last Modified: Friday, June 26, 2009
| Solution ID: | 1-14ZQS4 | |
| Product: | MATLAB | |
| Reported in Release: | R14SP2 | |
| Fixed in Release: | R2006a | |
| Platform: | Solaris | |
| Operating System: | Solaris Any |
Subject:
Why am I unable to use MEX on Solaris 10 in MATLAB 7.0.4 (R14SP2)?
Problem Description:
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
Solution:This bug has been fixed in Release 2006a (R2006a). For previous product releases, read below for any possible workarounds: |
Related Documents/Files:
|
|
Store

