External Interfaces/API    

Compiling and Linking on Windows

To compile and link Fortran or C MAT-file programs, use the mex script with a MAT options file. Table 1-2, Options Files, lists the MAT options files included in this release. All of these options files are located in <matlab>\bin\win32\mexopts.

As an example, to compile and link the stand-alone MAT application matcreat.c on Windows using MSVC (Version 5.0), use

where <pathname> specifies the complete path to the specified file. If you need to modify the options file for your particular compiler, use the -v switch to view the current compiler and linker settings and then make the appropriate changes in a local copy of the options file.


  Compiling and Linking on UNIX COM and DDE Support