matlab生成exe失败,求助,m文件生成exe遇到的错误

我的版本是2007a,刚试了下,还是不行,下面一堆错误

mcc -o sub_ruanqidong -W main -d D:\ruanqidong\ruanqidong\src -T link:exe -v D:\ruanqidong\sub_ruanqidong.m -a D:\ruanqidong\plotinu.m -a D:\ruanqidong\plotmfn.m -a D:\ruanqidong\plotnf.m -a D:\ruanqidong\plotni.m

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\matlabrc.m").

Parsing file "D:\matlab7.0\toolbox\compiler\deploy\hgrc.m"

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\matlabrc.m").

Parsing file "D:\matlab7.0\toolbox\matlab\codetools\initdesktoputils.m"

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\matlabrc.m").

Parsing file "D:\matlab7.0\toolbox\local\initprefs.m"

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\matlabrc.m").

Parsing file "D:\matlab7.0\toolbox\matlab\general\isdeployed.m"

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\matlabrc.m").

Parsing file "D:\matlab7.0\toolbox\matlab\lang\lasterror.m"

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\matlabrc.m").

Parsing file "D:\matlab7.0\toolbox\local\pathdef.m"

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\matlabrc.m").

Parsing file "D:\matlab7.0\toolbox\matlab\general\pwd.m"

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\matlabrc.m").

Parsing file "D:\matlab7.0\toolbox\matlab\general\recycle.m"

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\matlabrc.m").

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\deployprint.m").

Parsing file "D:\matlab7.0\toolbox\matlab\timefun\now.m"

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\deployprint.m").

Parsing file "D:\matlab7.0\toolbox\matlab\datatypes\num2cell.m"

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\deployprint.m").

Parsing file "D:\matlab7.0\toolbox\matlab\strfun\num2str.m"

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\deployprint.m").

Parsing file "D:\matlab7.0\toolbox\matlab\graphics\orient.m"

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\deployprint.m").

Parsing file "D:\matlab7.0\toolbox\matlab\graphics\print.m"

Parsing file "D:\matlab7.0\toolbox\matlab\general\rmpath.m"

(Referenced from: "D:\matlab7.0\toolbox\compiler\deploy\printdlg.m").

Generating file "D:\ruanqidong\ruanqidong\src\sub_ruanqidong_main.c".

Generating file "D:\ruanqidong\ruanqidong\src\readme.txt".

Generating file "D:\ruanqidong\ruanqidong\src\sub_ruanqidong_mcc_component_data.c".

Executing command: mbuild -O -v -output "sub_ruanqidong" -I"D:\ruanqidong\ruanqidong\src" "D:\ruanqidong\ruanqidong\src\sub_ruanqidong_main.c" "D:\ruanqidong\ruanqidong\src\sub_ruanqidong_mcc_component_data.c" -link exe -outdir "D:\ruanqidong\ruanqidong\src"

This is mbuild Copyright 1984-2006 The MathWorks, Inc.

-> Default options filename found in C:\Documents and Settings\HB8437\Application Data\MathWorks\MATLAB\R2007a

----------------------------------------------------------------

->    Options file           = C:\Documents and Settings\HB8437\Application Data\MathWorks\MATLAB\R2007a\compopts.bat

->    COMPILER               = cl

->    Compiler flags:

COMPFLAGS           = -c -Zp8 -G5 -GX -W3 -nologo

OPTIMFLAGS          = -O2 -DNDEBUG

DEBUGFLAGS          = -Zi -Fd"D:\ruanqidong\ruanqidong\src\sub_ruanqidong.pdb"

arguments           =  -ID:\ruanqidong\ruanqidong\src

Name switch         = /Fo

->    Pre-linking commands   =

->    LINKER                 = link

->    Link directives:

LINKFLAGS           = kernel32.lib user32.lib gdi32.lib advapi32.lib oleaut32.lib ole32.lib /LIBPATH:"D:\matlab7.0\extern\lib\win32\microsoft" /nologo mclmcrrt.lib

LINKFLAGSPOST       =

Name directive      = "/out:D:\ruanqidong\ruanqidong\src\sub_ruanqidong.exe"

File link directive =

Lib. link directive =

Rsp file indicator  = @

->    Resource Compiler      = rc /fo "D:\ruanqidong\ruanqidong\src\.res"

->    Resource Linker        =

----------------------------------------------------------------

--> "cl  -ID:\ruanqidong\ruanqidong\src -c -Zp8 -G5 -GX -W3 -nologo /FoC:\DOCUME~1\HB8437\LOCALS~1\Temp\mbuild_2EB5AC94-7E75-4571-F9B5-59498E2D274F\sub_ruanqidong_main.obj -ID:\matlab7.0\extern\include -ID:\matlab7.0\simulink\include -O2 -DNDEBUG D:\ruanqidong\ruanqidong\src\sub_ruanqidong_main.c"

D:\MATLAB7.0\BIN\MEX.PL: Error: Compile of 'D:\ruanqidong\ruanqidong\src\sub_ruanqidong_main.c' failed.

'cmd' ²»ÊÇÄÚ²¿»òÍⲿÃüÁҲ²»ÊÇ¿ÉÔËÐеijÌÐò

»òÅú´¦ÀíÎļþ¡£

Error: An error occurred while shelling out to mbuild (error code = 1).

Unable to build executable.

??? Error executing mcc, return status = 1.

There were errors during compilation process.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值