Compiling & Building MEX files for Matlab on a MacBook Pro using Xcode 2.4.1, Intel Compiler, Intel

How to to compile and link MEX files for Matlab using Xcode IDE on a Intel Core 2 MacBook Pro
2.8K Downloads
Updated 10 Dec 2007

No License

In these notes I will describe my first (successful) attempt to compile and link MEX files for Matlab using Xcode IDE on a Intel Core 2 MacBook Pro (but hopefully the procedure should be general enough to adapt to other scenarios). Since I am new to the Mac's world (after many years using solely Windows and a little bit of Linux) it is likely that this notes are not totally accurate or that some issues can be solved much easily. Do not hesitate to contact me and to send suggestions/corrections.

Cite As

Marco Zuliani (2025). Compiling & Building MEX files for Matlab on a MacBook Pro using Xcode 2.4.1, Intel Compiler, Intel (https://se.mathworks.com/matlabcentral/fileexchange/17602-compiling-building-mex-files-for-matlab-on-a-macbook-pro-using-xcode-2-4-1-intel-compiler-intel), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Automotive in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

Important improvement that fixes the choice of the correct Mac-O type in order to avoid the problem of "persistence" while recompiling a MEX file during the same Matlab Session