ainimm 发表于 2007-8-3 14:22

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

想用matlab的和c混合编程,但第一步就遇到问题。编译器始终弄不好。有没有哪位达人能帮忙解决下。下面是我
安装的过程。
mex -setup
Please choose your compiler for building external interface (MEX) files:

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

Select a compiler:
Digital Visual Fortran version 6.0 in C:\Program Files\Microsoft Visual Studio
Lcc C version 2.4 in C:\MATLAB6P5\sys\lcc
Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio

None

Compiler: 3

Please verify your choices:

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

Are these correct?(/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 编辑 ]

eight 发表于 2007-8-3 14:24

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

先用 mbuild -setup, 再用 mex -setup

ainimm 发表于 2007-8-3 14:44

回复 #2 eight 的帖子

多谢,还想再问下,
在mbuild -setup后有选项
[ Lcc C version 2.4 in C:\MATLAB6P5\sys\lcc
Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
None
只能选1,选2就报warning。为啥?两个选项有啥区别。多谢了

eight 发表于 2007-8-3 15:31

原帖由 ainimm 于 2007-8-3 14:44 发表 http://www.chinavib.com/forum/images/common/back.gif
多谢,还想再问下,
在mbuild -setup后有选项
[ Lcc C version 2.4 in C:\MATLAB6P5\sys\lcc
Microsoft Visual C/C++ version 6.0 in C:\Program Files\Microsoft Visual Studio
None
只能 ...


选2有warning的话建议重装一下vc。两者的区别搜索一下版面,lcc 是matlab自带的,功能较弱,混编的话还是选择其他如VC、BCB等编译器吧
页: [1]
查看完整版本: matlab的和c混合编程的配置问题