gpt4 book ai didi

visual-studio-2010 - 设置 mex 以使用 Visual Studio 2010 编译器

转载 作者:太空宇宙 更新时间:2023-11-03 19:17:01 25 4
gpt4 key购买 nike

我安装了 Visual Studio 2010。但是,MATLAB 找不到编译器。

>> mex -setup
Please choose your compiler for building external interface (MEX) files:

Would you like mex to locate installed compilers [y]/n? y

Select a compiler:

[0] None

Compiler:

如果我对问题回答n,我会得到以下信息

Would you like mex to locate installed compilers [y]/n? n

Select a compiler:
[1] Intel C++ 11.1 (with Microsoft Visual C++ 2008 SP1 linker)
[2] Intel C++ 9.1 (with Microsoft Visual C++ 2005 SP1 linker)
[3] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 SP1 linker)
[4] Intel Visual Fortran 11.1 (with Microsoft Visual C++ 2008 Shell linker)
[5] Intel Visual Fortran 10.1 (with Microsoft Visual C++ 2005 SP1 linker)
[6] Microsoft Visual C++ 2005 SP1
[7] Microsoft Visual C++ 2008 Express
[8] Microsoft Visual C++ 2008 SP1

[0] None

Compiler: 8

The default location for Microsoft Visual C++ 2008 SP1 compilers is C:\Program Files (x86)\Microsoft Visual Studio 9.0,
but that directory does not exist on this machine.

Use C:\Program Files (x86)\Microsoft Visual Studio 9.0 anyway [y]/n? n
Please enter the location of your compiler: [C:\Program Files (x86)\Microsoft Visual Studio 9.0]

编译我的 C++ 代码以使其在 MATLAB 中可用的最简单方法是什么?安装 Visual C++ 2008?哦

最佳答案

这取决于您使用的 MATLAB 版本。 R2010b 开箱即用地支持 VS2010。如果您有 R2010a,则有可用的补丁:

关于visual-studio-2010 - 设置 mex 以使用 Visual Studio 2010 编译器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4078094/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com