Info

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

How can I get MEX to recognise the compiler?

1 view (last 30 days)
James
James on 15 Aug 2014
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi,
Just having a bit of trouble setting up Matlab for converting into C++ code. I am using MATLAB version 2012b.
I have downloaded SDK 7.1 and NET 4 as well as the Microsoft Visual C++ 2010 (x64 and x86) Redistributable.
MATLAB recognises the compiler and asks me to confirm the selection when I input the command "mex -setup".
However, when I go to convert MATLAB code into C++ using the MATLAB coder for C/C++ Static Library output I receive the following build errors,
"The current MEX compiler '<unknown>' is not supported. Use mex -setup to selecta supported compiler."
I have admin rights to the computer.
How can I get MEX to recognise the compiler? I have not been able to find any solutions online.
Thanks.
Kind regards, James

Answers (0)

Community Treasure Hunt

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

Start Hunting!