{"id":5345,"date":"2014-03-30T20:58:38","date_gmt":"2014-03-30T20:58:38","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/is-it-possible-to-link-the-matlab-compiler-to-visual-c-compiler-collection-of-common-programming-errors\/"},"modified":"2014-03-30T20:58:38","modified_gmt":"2014-03-30T20:58:38","slug":"is-it-possible-to-link-the-matlab-compiler-to-visual-c-compiler-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/is-it-possible-to-link-the-matlab-compiler-to-visual-c-compiler-collection-of-common-programming-errors\/","title":{"rendered":"Is it possible to link the Matlab compiler to Visual C++ compiler?-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/YhaOv.jpg?s=32&amp;g=1\" \/><br \/>\nAnimesh Pandey<\/p>\n<p>I am using Matlab 2010 and VS2010. I have the Matlab Compiler Runtime installed in my system. Whenever if run command <code>mcc -setup<\/code> I get only one compiler <code>lcc<\/code>. 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.<\/p>\n<p>Can I also connect VC++ compiler with MCC ????<\/p>\n<p>How should I do that ??<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a254f486ab076ab1af26162a975e90f9?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nShai<\/p>\n<p>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.<\/p>\n<p>I ran into this issue once and my best advice is to download VS2008 express edition&#8230;<\/p>\n<p>It&#8217;s lame, but its the quickest way to get Matlab 2010 working with VS.<\/p>\n<p>Sorry.<\/p>\n<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b9b646cc701a3b906179ccf9ee68c350?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nIgor<\/p>\n<p>Have you read this article? Especially note 2? They are talking about a similar bug there.<\/p>\n<p>PS<\/p>\n<p>Matlab interacts with compilers using mexopts files, located in<\/p>\n<pre><code>matlabroot\\bin\\win64\\mexopts\\\n<\/code><\/pre>\n<p>So, you may add virtually any compiler yourself.<\/p>\n<ul>\n<li>Some mexopts are available through Mathworks fileexchange.<\/li>\n<li>If you&#8217;ve got access to newer matlab installation, you can get mexopts from there.<\/li>\n<li>You can write your own set of mexopts, based on existing files. In genereal, it&#8217;s rather easy make, say VS2010 mexopts out of VS2008 ones.<\/li>\n<\/ul>\n<p>Here&#8217;s an official article on this.<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Animesh Pandey 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5345","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5345"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5345\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}