Skip to Main Content Skip to Search
Product Documentation

Running MEX-Files with .DLL File Extensions on Windows 32-bit Platforms

A MEX-file is a shared library dynamically loaded at runtime. Shared libraries are sometimes called .dll files, for dynamically-linked library. MEX-files have a platform-dependent extension, which the mex function automatically assigns.

On 32-bit Windows platforms, the extension is .mexw32. MATLAB has supported .dll as a secondary MEX-file extension since Version 7.1 (R14SP3). In Version 7.7 (R2008b), if you used the -output switch to create a MEX-file with a .dll extension, MATLAB displayed a warning message that such usage is being phased out.

In MATLAB Version 7.10 (R2010a), you can no longer create a MEX-file with a .dll file extension. If you try to, MATLAB creates the MEX-file with the proper extension and displays the following warning:

Warning: Output file was specified with file extension, ".dll", which
         is not a proper MEX-file extension.  The proper extension for
         this platform, ".mexw32", will be used instead. 

MATLAB continues to execute a MEX-file with a .dll extension, but future versions of MATLAB will not support this extension.

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS