External Interfaces - The MathWorks - #101

/ 649


catalogue search
P. 101
P. 102
P. 103
P. 104
P. 105
P. 106
P. 107
P. 108
P. 109
P. 110
P. 111
P. 112
P. 113
P. 114
P. 115
P. 116
P. 117
P. 118
P. 119
P. 120
P. 121
P. 122
P. 123
P. 124
P. 125
P. 126
P. 127
P. 128
P. 129
P. 130
P. 131
P. 132
P. 133
P. 134
P. 135
P. 136
P. 137
P. 138
P. 139
P. 140
P. 141
P. 142
P. 143
P. 144
P. 145
P. 146
P. 147
P. 148
P. 149
P. 150


See other catalogues for The MathWorks

Text version of the page
Building Binary MEX-Files
Note The - setup option creates a user-specific matlab directory in your individual home directory and copies the appropriate options file to the directory. (If the directory already exists, a new one is not created.) This matlab directory is used for your individual options files only; each user can have his or her own default options files (other MATLAB products may place options files in this directory). Do not confuse these user-specific matlab directories with the system matlab directory, where MATLAB is installed. To see the name of this directory on your machine, use the MATLAB command prefdir.
Using the setup option resets your default compiler so that the new compiler is used every time you use the mex script.
Testing Your Configuration on Windows® Platforms
Before you can create binary MEX-files on the Windows platform, you must configure the default options file, mexopts.bat, for your compiler. The -setup option provides an easy way for you to configure the default options file. To configure or change the options file at anytime, run:
mex -setup
from either the MATLAB or DOS command prompt.
Lcc Compiler
MATLAB includes a C compiler called Lcc that you can use to create C MEX-files. Help on using the Lcc compiler is available in a help file that ships with MATLAB. To view this file, type in the MATLAB command window:
!matlabroot\sys\lcc\bin\wedit.hlp
replacing the term matlabroot with the path to the directory in which MATLAB is installed on your system. (Type matlabroot in the Command Window to get the path for this directory.)
3-25

pageCatalog pdf di En 2012-06-22-01