CAD教程 行业资讯 3D模型下载 Pro/E教程 CAD书店 软件下载 联系我们
技术资料 CAD招聘 发布招聘 CAD问答 设计竞赛 CAD认证 北京CAD培训
视频教程 PS教程 CAD图纸 图书推荐 Solidworks教程 CAD培训 CAD软件商

 最新视频教程Pro/ENGINEER Wildfire2.0 工业设计实例视频教程 (全套免费在线学习)   AutoCAD视频教程每日更新
 
首页 > CAD在线问答 > matlab

Matlab gui界面转exe出错,求解答!!!

2010-10-06 51自学网



Win7旗舰版下,在MATLAB(R2008a)中将gui转成exe,用mbuild -setup和mex -setup两个命令安装编译器VC6.0,都好使,但是键入mcc -m filename(界面的 .m文件名)出现错误,如下:>> mbuild -setupPlease choose your compiler for building standalone MATLAB applications: Would you like mbuild to locate installed compilers [y]/n? y Select a compiler: [1] Lcc-win32 C 2.4.1 in E:/MATLAB2/R2008a/sys/lcc [2] Microsoft Visual C++ 6.0 in E:/Program Files/Microsoft Visual Studio [0] None Compiler: 2 Please verify your choices: Compiler: Microsoft Visual C++ 6.0 Location: E:/Program Files/Microsoft Visual Studio Are these correct [y]/n? y Trying to update options file: C:/Users/hp/AppData/Roaming/MathWorks/MATLAB/R2008a/compopts.bat From template: E:/MATLAB2/R2008a/bin/win32/mbuildopts/msvc60compp.bat Done . . . >> mex -setupPlease 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-win32 C 2.4.1 in E:/MATLAB2/R2008a/sys/lcc/bin [2] Microsoft Visual C++ 6.0 in E:/Program Files/Microsoft Visual Studio [3] Open WATCOM C++ in E:/watcom-1.3 [0] None Compiler: 2 Please verify your choices: Compiler: Microsoft Visual C++ 6.0 Location: E:/Program Files/Microsoft Visual Studio Are these correct [y]/n? y Trying to update options file: C:/Users/hp/AppData/Roaming/MathWorks/MATLAB/R2008a/mexopts.bat From template: E:/MATLAB2/R2008a/bin/win32/mexopts/msvc60opts.bat Done . . . ************************************************************************** Warning: The MATLAB C and Fortran API has changed to support MATLAB variables with more than 2^32-1 elements. In the near future you will be required to update your code to utilize the new API. You can find more information about this at: http://www.mathworks.com/support/solutions/data/1-5C27B9.html?solution=1-5C27B9 Building with the -largeArrayDims option enables the new API. ************************************************************************** >> mcc -m hit_08211.mhit_08211_main.c hit_08211_main.c(9) : fatal error C1083: Cannot open include file: 'mclmcrrt.h': No such file or directory E:/MATLAB7//BIN/WIN32/MEX.PL: Error: Compile of 'hit_08211_main.c' failed. Error: An error occurred while shelling out to mbuild (error code = 255). Unable to build executable (specify the -v option for more information). ??? Error using ==> mccError executing mcc, return status = 1.这是什么原因,怎么解决?谢谢




 

 

一个小孩借助长度为a的硬棒,拉或推某玩具.此小孩沿某曲线行走,计算并画出玩具的轨迹.MATLAB求解?
地中海鲨鱼问题MATLAB程序?
我来回答 共有条 回答
用户名: 密码:
验证码: 匿名发表
| AutoCAD | Pro/E | UG | 3Dmax | catia | solidworks | maya | photoshop | 模具设计 | 有限元 | matlab | 计算机图形学 | 室内设计 |