声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1286|回复: 3

[混合编程] matlab的和c混合编程的配置问题

[复制链接]
发表于 2007-8-3 14:22 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
想用matlab的和c混合编程,但第一步就遇到问题。编译器始终弄不好。有没有哪位达人能帮忙解决下。下面是我
安装的过程。
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] Digital Visual Fortran version 6.0 in C:\Program Files\Microsoft Visual Studio
[2] Lcc C version 2.4 in C:\MATLAB6P5\sys\lcc
[3] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio

[0] None

Compiler: 3

Please verify your choices:

Compiler: Microsoft Visual C/C++ 6.0
Location: C:\Program Files\Microsoft Visual Studio

Are these correct?([y]/n): y

The default options file:
"C:\Documents and Settings\Ning\Application Data\MathWorks\MATLAB\R13\mexopts.bat"
is being updated from C:\MATLAB6P5\BIN\WIN32\mexopts\msvc60opts.bat...

Installing the MATLAB Visual Studio add-in ...

  Warning: Could not update C:\Program Files\Microsoft Visual Studio\common\msdev98\template\MATLABWizard.awx
    from C:\MATLAB6P5\BIN\WIN32\MATLABWizard.awx
  Warning: Could not update C:\Program Files\Microsoft Visual Studio\common\msdev98\template\MATLABWizard.hlp
    from C:\MATLAB6P5\BIN\WIN32\MATLABWizard.hlp
  Warning: Could not update C:\Program Files\Microsoft Visual Studio\common\msdev98\addins\MATLABAddin.dll
    from C:\MATLAB6P5\BIN\WIN32\MATLABAddin.dll
  Warning: Could not update C:\Program Files\Microsoft Visual Studio\common\msdev98\bin\usertype.dat
    from C:\MATLAB6P5\BIN\WIN32\usertype.dat

  Note: One or more components necessary to the operation of the MATLAB Visual
        Studio add-in could not be installed. The MATLAB Visual Studio add-in
        will not be available, but the rest of this setup operation will  
        continue normally.
是否在之前还需要作程序的配置?

[ 本帖最后由 eight 于 2007-8-3 14:24 编辑 ]
回复
分享到:

使用道具 举报

发表于 2007-8-3 14:24 | 显示全部楼层
原帖由 ainimm 于 2007-8-3 14:22 发表
想用matlab的和c混合编程,但第一步就遇到问题。编译器始终弄不好。有没有哪位达人能帮忙解决下。下面是我
安装的过程。
mex -setup
Please choose your compiler for building external interface (MEX) f ...


先用 mbuild -setup, 再用 mex -setup
 楼主| 发表于 2007-8-3 14:44 | 显示全部楼层

回复 #2 eight 的帖子

多谢,还想再问下,
在mbuild -setup后有选项
[[1] Lcc C version 2.4 in C:\MATLAB6P5\sys\lcc
[2] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None  
只能选1,选2就报warning。为啥?两个选项有啥区别。多谢了
发表于 2007-8-3 15:31 | 显示全部楼层
原帖由 ainimm 于 2007-8-3 14:44 发表
多谢,还想再问下,
在mbuild -setup后有选项
[[1] Lcc C version 2.4 in C:\MATLAB6P5\sys\lcc
[2] Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
[0] None  
只能 ...



选2有warning的话建议重装一下vc。两者的区别搜索一下版面,lcc 是matlab自带的,功能较弱,混编的话还是选择其他如VC、BCB等编译器吧
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-21 00:04 , Processed in 0.064958 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表