Skip to Main Content Skip to Search
Home |   Select Country  Choose Country  |  Contact Us  |  Cart Store 
Create Account | Log In
Products & Services Solutions Academia Support User Community Company
spacer spacer spacer spacer spacer spacer

Technical Solutions

Why do I receive the error "Error: Compile of 'yprime.c' failed" when compiling the yprime.c example?


Date Last Modified: Thursday, August 20, 2009
Solution ID:   1-18TTY
Product:   MATLAB Compiler
Reported in Release:   R12.1
Platform:   Windows
Operating System:   Windows Any
 

Subject:

Why do I receive the error "Error: Compile of 'yprime.c' failed" when compiling the yprime.c example?

Problem Description:

I get the following error when I try to compile the yprime.c example that's shipped with MATLAB in the $MATLABROOT\extern\examples\mex folder (where $MATLABROOT is the MATLAB root directory on your machine, as returned by typing
matlabroot
at the MATLAB Command Prompt)
D:\MATLAB6P1\BIN\WIN32\MEX.PL: Error: Compile of 'yprime.c' failed.

The system cannot find the path specified.
??? Error using ==> mex
Unable to complete successfully

Solution:

One of the reasons for this error is that the 'Path' environment variable defined for the system does not contain the path to the system32 subdirectory. This subdirectory generally exists in the system root directory. One may access this directory by executing the following in a DOS command prompt window:


cd %systemroot%\system32
To resolve the error, append the path to this directory to your system 'Path' environment variable by following the instructions in the Related Solution listed below.

 

Related Solutions:

Please provide feedback to help us improve this Solution
Contact support
E-mail this page
Print this page