Question

I am using Matlab 2010 and VS2010. I have the Matlab Compiler Runtime installed in my system. Whenever if run command mcc -setup I get only one compiler lcc. This compiler gives a lot of errors when used to build a C++ shared library using deployment tool. It builds only C Shared libraries correctly.

Can I also connect VC++ compiler with MCC ????

How should I do that ??

Was it helpful?

Solution 2

There is an issue with Matlab 2010 and VS2010. It seems like Matlab was released before VS and therefore it does not have automatic way of configuring VS2010.

I ran into this issue once and my best advice is to download VS2008 express edition...

It's lame, but its the quickest way to get Matlab 2010 working with VS.

Sorry.

OTHER TIPS

Have you read this article? Especially note 2? They are talking about a similar bug there.

PS

Matlab interacts with compilers using mexopts files, located in

matlabroot\bin\win64\mexopts\

So, you may add virtually any compiler yourself.

  • Some mexopts are available through Mathworks fileexchange.
  • If you've got access to newer matlab installation, you can get mexopts from there.
  • You can write your own set of mexopts, based on existing files. In genereal, it's rather easy make, say VS2010 mexopts out of VS2008 ones.

Here's an official article on this.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top