user376089
user376089

Reputation: 1265

How to compile a MEX file

How to compile a MEX file? Do I need to have any software installed?

Upvotes: 0

Views: 4519

Answers (2)

zw324
zw324

Reputation: 27210

Just compile the file with mex yourmexfile.c.

If you are using 32-bit Windows, you can use LCC which comes with MATLAB. However, the LCC shipped with MATLAB does not contain C++ functionality, so if you are using C++, please refer to MEX-files guide.

Upvotes: 1

twerdster
twerdster

Reputation: 5027

You can also compile mex files in an IDE. This is not that common when you are starting out but it can be convenient in some cases for more advanced programming. See the following Matlab docs for detailed instructions for Microsoft Visual Studio: http://www.mathworks.com/help/techdoc/matlab_external/f24338.html#f24571

Upvotes: 0

Related Questions