Using Visual C++ compiler vs. Lcc compiler

17 次查看(过去 30 天)
Dear All,
I recently set my compilers to the Visual C++ 2008 Express compilers (using mbuild -setup, and mex -setup).
I received warnings saying that if I redistribute my applications, I would have to make sure the Visual Studio run-time libraries are on the computer I am distributing to.
Does this mean that even if I package the MCR with a standalone executable (using the deployment tool), the user would have to install Visual Studio? If I want to prevent this should I simply use the Lcc compiler?
Thanks, Philip
  3 个评论
Kaustubha Govind
Kaustubha Govind 2011-2-24
Also, see http://www.mathworks.com/support/solutions/en/data/1-3LSMPR/index.html
Philip
Philip 2011-2-25
Thanks for the info! Does this mean I would have to tell the user to download these run-time files? Or is there a way to include the run-time installation in the MCR or executable? I'm using MATLAB 2010a using the deployment project tool.

请先登录,再进行评论。

回答(1 个)

Jan
Jan 2011-2-25
I suggest not to use the LCC compiler. The functions compiled by MSVC are remarkably faster. As Kaustubha Govind explained, you do not need the MSVC compiler on the client machine, but just the runtime libs. They are freely available and have a size of some MB only.
  1 个评论
Philip
Philip 2011-2-25
Thanks! I asked this in my comment above, but is there a way to include the runtime libs in the MCR so the user would not have to download/install anything themselves?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 C Shared Library Integration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by