VS 2010 express compiler Matlab shared libraries

2次观看(最近30天)
Marco Esteves
Marco Esteves on 18 May 2012
Hello, I'm following this tutorial >,但是毕竟满足了依赖性,我得到了这个错误:
致命的错误lnk1181:无法打开输入文件'kernel32.lib'
有任何想法吗?
4 Comments
马克·米科夫斯基
马克·米科夫斯基 on 28 Aug 2012
再注:
I just compiled a file with the Windows 7.1 SDK compiler and compared it with the original compiled with VS10 Express, and the files are identical byte for byte. This is not super surprising because previously VS10 Express only worked on x64 with the Windows 7.1 SDK, and MATLAB seems to state that Windows 7.1 SDK is 里面 在VS10 Express中,也许它们现在几乎是一个又一个?我将把这个视为 改进

登录发表评论。

答案(1)

马克·米科夫斯基
马克·米科夫斯基 2012年8月29日
Edited:马克·米科夫斯基 2012年8月29日
From your link it appears that you are using MATLAB 2011a on Windows 7 x64. If this is not true please respond with your version of MATLAB. Nevertheless I will address issues for both prior to 2012a and post and for both x86 and x64.
  1. 您的问题可能与Microsoft KB 2519277如果你之前安装的微软视觉C++ 2010 Express (VS 2010 Express) and Windows SDK 7.1, and then later applied the Service Pack 1 Compiler Update. The solution is to download and install this update:VC-Compiler-KB2519277.EXE
  2. You may not have Windows SDK 7.1 installed at all. According to thisMATLAB 2万博1manbetx011a的支持编译器列表(X64), MATLAB 2011a only supports VS 2010 Express if it used with Windows SDK 7.1. Here is a nicestep-by-step solution发表由Mathworks发表。Note: You may still need to install the Visual C++ SP1 Compiler Update for Windows SDK 7.1. See the link to KB 2519277 above.
  3. 如果您有MATLAB 2012a或以后,那么问题是VS 2010 Express是不支持万博1manbetxin MATLAB 2012a or later, although Microsoft Visual C++ 2010 Professional is still supported, and Windows SDK 7.1 is now supported by itself. See theMATLAB 2万博1manbetx012a的支持编译器列表(X64)。您不需要VS 2010 Express。
  4. Windows X86 MATLAB 2011b和更早的版本do not需要Windows SDK 7.1,即它们与VS 2010 Express一起使用。但是,Matlab 2012a的Windows X86版本,后来仅使用Windows SDK 7.1,类似于X64版本,并且do notrequire VS 2010 express.不幸的是,当已经安装了VS 2010 SP1时,安装Windows SDK 7.1存在问题在KB 2519277中也描述了这一点(见上文)。首选的安装方法是(1)Visual C ++ 2010(Express或Professional),(2)Windows SDK 7.1,(3)Visual C ++ 2010 SP1,(4)Windows SDK 7.1的Visual C ++ SP1编译器更新。如果您尝试安装Windows SDK 7.1安装SP1,然后尝试安装C ++编译器时,您将获得“致命错误”。啊!解决方法是取消选中“ C ++编译器”框并重新安装安装。然后,在安装完成后运行Windows SDK 7.1的Visual C ++ SP1编译器更新。
Please consult the appropriate list of supported compilers for all x86 versions of MATLAB. However
1条评论
马克·米科夫斯基
马克·米科夫斯基 2012年8月29日
另请注意:您无需安装Visual C ++ 2010 SP1更新。

登录发表评论。

社区Treasure Hunt

在Matlab Central中找到宝藏,发现社区如何为您提供帮助!

Start Hunting!