Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 工程数学软件 > MATLAB论坛
MATLAB论坛 一切MATLAB相关问题在此讨论。
回复
 
主题工具 显示模式
旧 2008-04-20, 14:58   #1
lijian15555
初级会员
 
注册日期: 2008-04-20
年龄: 39
帖子: 2
声望力: 0
lijian15555 正向着好的方向发展
问题 [求助]matlab与vc用引擎接口

我在设置matlab编译器的时候,按照提示输入mex -setup y 2 y后,得到如下信息:
>> 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:
[1] Lcc C version 2.4 in D:\MATLAB7\sys\lcc
[2] Microsoft Visual C/C++ version 6.0 in D:\VC++.6.0.with.SP6\MSDev98

[0] None

Compiler: 2

Please verify your choices:

Compiler: Microsoft Visual C/C++ 6.0
Location: D:\VC++.6.0.with.SP6\MSDev98

Are these correct?([y]/n): y
Warning: Mex requires that the Microsoft Visual C++ 6.0
directories "VC98" and "Common" be located within the same parent directory.
(Expected to find a directory named "Common" in the directory 'D:\VC++.6.0.with.SP6\MSDev98'.)
Try to update options file: C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R14\mexopts.bat
From template: D:\MATLAB7\BIN\WIN32\mexopts\msvc60opts.bat

Done . . .
请教下这是什么意思啊
lijian15555 当前离线   回复时引用此帖
旧 2008-04-20, 15:15   #2
yesman
高级会员
 
yesman 的头像
 
注册日期: 2007-04-05
帖子: 199
声望力: 28
yesman 即将成为的新星yesman 即将成为的新星yesman 即将成为的新星yesman 即将成为的新星
默认

意思好像是让你选择编译器,有两种选择,你选择了2,即Microsoft Visual C/C++的编译器,然后警告你说需要Microsoft Visual C++ 6.0的"VC98"和"Common"目录在同一个父目录下。
然后试着从模板D:\MATLAB7\BIN\WIN32\mexopts\msvc60opts.bat 更新选项文件C:\Documents and Settings\Administrator\Application Data\MathWorks\MATLAB\R14\mexopts.bat

大概就这意思吧......
不知解释的对不对:smile:
yesman 当前离线   回复时引用此帖
旧 2008-04-20, 16:37   #3
lijian15555
初级会员
 
注册日期: 2008-04-20
年龄: 39
帖子: 2
声望力: 0
lijian15555 正向着好的方向发展
默认 1

不知道具体怎么操作啊
更新就是把模板里的复制过去吗
lijian15555 当前离线   回复时引用此帖
旧 2008-04-27, 22:14   #4
phoebelover
初级会员
 
注册日期: 2008-04-27
年龄: 43
帖子: 2
声望力: 0
phoebelover 正向着好的方向发展
默认

你大概是装vc的时候没有把所有组件装在一个文件夹下面
phoebelover 当前离线   回复时引用此帖
回复


发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码


相似的主题
主题 主题作者 版面 回复 最后发表
外部控制參數個數 fgabertb MATLAB论坛 2 2008-05-30 20:59
如何在一个用guide生成的gui中用按纽弹出另一个图形框,且在后者执行时不会出错 lizhen330225 MATLAB论坛 0 2008-05-27 15:01
[求助]求救!!!MATLAB图像存储问题 sea MATLAB论坛 2 2008-05-22 17:02
【求助】请教FOR循环程序优化 purplesapple MATLAB论坛 0 2007-04-30 10:09


所有时间均为北京时间。现在的时间是 02:25


Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.