how to build Mex files

1 view (last 30 days)
Houayda Gharbi
Houayda Gharbi on 3 May 2015
Edited: Geoff Hayes on 3 May 2015
HI.When i tape mex -setup i have this complier " Lcc-win32 C 2.4.1 in C:\PROGRA~2\MATLAB~1\sys\lcc " and his location C:\PROGRA~2\MATLAB~1\sys\lcc and i got this message:
Trying to update options file: C:\Users\HP\AppData\Roaming\MathWorks\MATLAB\R2010a\mexopts.bat
From template: C:\PROGRA~2\MATLAB~1\bin\win32\mexopts\lccopts.bat
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the new
API. You can find more information about this at:
http://www.mathworks.com/support/solutions/en/data/1-5C27B9/?solution=1-5C27B9
Building with the -largeArrayDims option enables the new API.
but when i write mex yprime.c i got this
C:\PROGRA~2\MATLAB~1\BIN\MEX.PL: Error: 'yprime.c' not found.
i found this file in another directory but not compiled i found several errors. thank u
  1 Comment
Geoff Hayes
Geoff Hayes on 3 May 2015
Houayda - is the file yprime.c in the current directory? What is returned when you type the following in the Command Window
which yprime.c -all

Sign in to comment.

Answers (0)

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!