Using Visual C++ compiler vs. Lcc compiler
显示 更早的评论
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
2011-2-24
The user doesn't need to install Visual Studio, but needs to get the associated runtime libraries. I believe these are available for free - for example see Microsoft Download Center (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84). I think LCC-WIN32 links against crtdll.dll, which is the standard Windows C runtime library.
Kaustubha Govind
2011-2-24
Also, see http://www.mathworks.com/support/solutions/en/data/1-3LSMPR/index.html
Philip
2011-2-25
回答(1 个)
Jan
2011-2-25
1 个投票
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.
类别
在 帮助中心 和 File Exchange 中查找有关 C Shared Library Integration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!