Animesh Pandey
Animesh Pandey

Reputation: 6018

Is it possible to link the Matlab compiler to Visual C++ compiler?

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 ??

Upvotes: 2

Views: 830

Answers (2)

Igor
Igor

Reputation: 1737

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.

Upvotes: 2

Shai
Shai

Reputation: 114816

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.

Upvotes: 0

Related Questions