声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1126|回复: 1

[混合编程] 想联合VC6.0和Matlab编程画图,我这么设置为什么有错呢?

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

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

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

x
用2种方法都有问题:

1 用Matcom。
装Matcom4.5时,跳出是否自动寻找matlab,若选是则提示“没有找到”;若手动选择(我已经安装了)安装目录,居然也提示说没有找到。
请问大侠这个到底是怎么回事啊?

2 用Compiler
一开始设置时就出错了:

>> mbuild-setup

Select a compiler:
[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

Compiler: 2

The default options file:
"C:\Documents and Settings\cgj\Application Data\MathWorks\MATLAB\R13\compopts.bat"
is being updated from C:\MATLAB6P5\BIN\WIN32\mbuildopts\msvc60compp.bat...


--> "C:\MATLAB6p5\bin\win32\mwregsvr C:\MATLAB6p5\bin\win32\mwcomutil.dll"

DllRegisterServer in C:\MATLAB6p5\bin\win32\mwcomutil.dll succeeded

--> "C:\MATLAB6p5\bin\win32\mwregsvr C:\MATLAB6p5\bin\win32\mwcommgr.dll"

DllRegisterServer in C:\MATLAB6p5\bin\win32\mwcommgr.dll succeeded

Installing the MATLAB Visual Studio add-in ...

  Updated C:\Program Files\Microsoft Visual Studio\common\msdev98\template\MATLABWizard.awx
    from C:\MATLAB6P5\BIN\WIN32\MATLABWizard.awx
  Updated C:\Program Files\Microsoft Visual Studio\common\msdev98\template\MATLABWizard.hlp
    from C:\MATLAB6P5\BIN\WIN32\MATLABWizard.hlp
  Updated C:\Program Files\Microsoft Visual Studio\common\msdev98\addins\MATLABAddin.dll
    from C:\MATLAB6P5\BIN\WIN32\MATLABAddin.dll
  Merged C:\MATLAB6P5\BIN\WIN32\usertype.dat
    with C:\Program Files\Microsoft Visual Studio\common\msdev98\bin\usertype.dat

Note: If you want to use the MATLAB Visual Studio add-in with the MATLAB C/C++
      Compiler, you must start MATLAB and run the following commands:

      cd(prefdir);
      mccsavepath;

      (You only have to do this configuration step once.)

    Usage:
      MBUILD [option1 ... optionN] sourcefile1 [... sourcefileN]
             [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]
             [exportfile1 ... exportfileN]

    Use the -help option for more information, or consult the MATLAB C/C++ Math
    Library User's Guide.


  MBUILD.BAT: Error: No file names given.

??? Undefined function or variable 'setup'.

------
求助高手
谢谢!
回复
分享到:

使用道具 举报

发表于 2007-1-13 19:37 | 显示全部楼层
原帖由 SantaClaus 于 2006-12-8 22:52 发表
用2种方法都有问题:

1 用Matcom。
装Matcom4.5时,跳出是否自动寻找matlab,若选是则提示“没有找到”;若手动选择(我已经安装了)安装目录,居然也提示说没有找到。
请问大侠这个到底是怎么回事啊?

...


问题1:参考关于matcom的精华贴
问题2:是 mbuild -setup
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

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

GMT+8, 2024-5-24 03:49 , Processed in 0.094922 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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