Info

This question is closed. Reopen it to edit or answer.

How to use matlab 2012b with Xcode4.6 compiler on a mac?

1 view (last 30 days)
Hello, I have a problem while trying to compile a cpp file with matlab 2012b (and I also tried with 2011b but it's the same), the error I get is:
mex: autoc.cpp not a normal file or does not exist.
Error using mex (line 206)
Unable to complete successfully.
I already tried all the steps described in http://www.mathworks.co.uk/support/solutions/en/data/1-FR6LXJ/ using Xcode 4.6 but it still doesn't work. Anyone can tell me if there is anything else I can try?
Thanks!
  1 Comment
Walter Roberson
Walter Roberson on 14 Feb 2013
use
!ls -l autoc.cpp
to check that the file exists and is a file and not a directory or device.
When you are using ls -l, the very first character of output for a normal file will be '-' right at the beginning of the permissions list, such as
-rw-rw-rw-
whereas for a directory the character will be 'd' and for a character device it will be 'c' and for a block device it will be 'b'.

Answers (0)

Community Treasure Hunt

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

Start Hunting!