找回密码
 注册
Simdroid-非首页
查看: 68|回复: 1

请问这个GUI界面编译出错的原因

[复制链接]
发表于 2007-12-27 14:47:54 | 显示全部楼层 |阅读模式 来自 湖北武汉
刚刚做了一个简单的界面,试验GUI编译功能,界面用GUIDE做出来,只加了一个AXES控件,编译后产生如下信息,无法通过编译。请问各位牛人,这里的问题出在哪里呢?谢谢。
Build output( 2007-12-27 13:52:16).
mcc -F 'D:\MATLAB\R2007a\work\Untitled3.prj'
Compiler version: 4.7 (R2007b)
mcc -o 'Untitled3' -W 'WinMain:Untitled3' -d 'D:\MATLAB\R2007a\work\Untitled3\src' -T 'link:exe' -v 'D:\MATLAB\R2007a\work\untitled.m'  
Processing D:\MATLAB\R2007b\toolbox\matlab\mcc.enc
Processing D:\MATLAB\R2007a\work\untitled.fig
Processing D:\MATLAB\R2007b\toolbox\matlab\guide\guideopts.fig
Processing D:\MATLAB\R2007b\toolbox\matlab\winfun\actxcontrolselect.fig
Processing D:\MATLAB\R2007b\toolbox\matlab\winfun\actxcontrolcreateproperty.fig
Processing include files...
2 item(s) added.
Processing directories installed with MCR...
The file D:\MATLAB\R2007a\work\Untitled3\src\mccExcludedFiles.log contains a list of functions excluded from the CTF archive.
1 item(s) added.
Generating MATLAB path for the compiled application...
Created 35 path items.
Begin validation of MEX files: Thu Dec 27 13:53:48 2007
Validating 'D:\MATLAB\R2007b\toolbox\compiler\deploy\deploywhich.mexw32'.
No conflicting M-file found.
Validating 'D:\MATLAB\R2007b\toolbox\compiler\deploy\readline.mexw32'.
No conflicting M-file found.
End validation of MEX files: Thu Dec 27 13:53:48 2007
Deleting 2 temporary MEX authorization files.
Removing: 'C:\DOCUME~1\Yetao\LOCALS~1\Temp\mathworks_tmp_0_4768.auth'.
Removing: 'C:\DOCUME~1\Yetao\LOCALS~1\Temp\mathworks_tmp_2224_4768.auth'.
Parsing file "D:\MATLAB\R2007a\work\untitled.m"
(Referenced from: "Compiler Command Line").
Parsing file "D:\MATLAB\R2007b\toolbox\compiler\deploy\deployprint.m"
(Referenced from: "Compiler Command Line").
Parsing file "D:\MATLAB\R2007b\toolbox\compiler\deploy\printdlg.m"
(Referenced from: "Compiler Command Line").
Generating file "D:\MATLAB\R2007a\work\Untitled3\src\Untitled3_main.c".
Generating file "D:\MATLAB\R2007a\work\Untitled3\src\readme.txt".
Generating file "D:\MATLAB\R2007a\work\Untitled3\src\Untitled3_mcc_component_data.c".
Executing command: mbuild -O -v -output "Untitled3" -I"D:\MATLAB\R2007a\work\Untitled3\src" "D:\MATLAB\R2007a\work\Untitled3\src\Untitled3_main.c" "D:\MATLAB\R2007a\work\Untitled3\src\Untitled3_mcc_component_data.c" -link exe -outdir "D:\MATLAB\R2007a\work\Untitled3\src"
This is mbuild Copyright 1984-2006 The MathWorks, Inc.

-> Default options filename found in C:\Documents and Settings\Yetao\Application Data\MathWorks\MATLAB\R2007b
----------------------------------------------------------------
->    Options file           = C:\Documents and Settings\Yetao\Application Data\MathWorks\MATLAB\R2007b\compopts.bat
->    COMPILER               = cl
->    Compiler flags:
         COMPFLAGS           = -c -Zp8 -G5 -W3 -nologo
         OPTIMFLAGS          = -O2 -DNDEBUG
         DEBUGFLAGS          = -Zi -Fd"D:\MATLAB\R2007a\work\Untitled3\src\Untitled3.pdb"
         arguments           =  -ID:\MATLAB\R2007a\work\Untitled3\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:\MATLAB\R2007b\extern\lib\win32\microsoft" /nologo mclmcrrt.lib
         LINKFLAGSPOST       =  
         Name directive      = "/out:D:\MATLAB\R2007a\work\Untitled3\src\Untitled3.exe"
         File link directive =  
         Lib. link directive =  
         Rsp file indicator  = @
->    Resource Compiler      = rc /fo "D:\MATLAB\R2007a\work\Untitled3\src\.res"
->    Resource Linker        =  
----------------------------------------------------------------


--> "cl  -ID:\MATLAB\R2007a\work\Untitled3\src -c -Zp8 -G5 -W3 -nologo /FoC:\DOCUME~1\Yetao\LOCALS~1\Temp\mbuild_8E5F8A58-0362-4E81-02AF-0DC2BDC96BFA\Untitled3_main.obj -ID:\MATLAB\R2007b\extern\include -ID:\MATLAB\R2007b\simulink\include -O2 -DNDEBUG D:\MATLAB\R2007a\work\Untitled3\src\Untitled3_main.c"

Untitled3_main.c

--> "cl  -ID:\MATLAB\R2007a\work\Untitled3\src -c -Zp8 -G5 -W3 -nologo /FoC:\DOCUME~1\Yetao\LOCALS~1\Temp\mbuild_8E5F8A58-0362-4E81-02AF-0DC2BDC96BFA\Untitled3_mcc_component_data.obj -ID:\MATLAB\R2007b\extern\include -ID:\MATLAB\R2007b\simulink\include -O2 -DNDEBUG D:\MATLAB\R2007a\work\Untitled3\src\Untitled3_mcc_component_data.c"

Untitled3_mcc_component_data.c
    Contents of C:\DOCUME~1\Yetao\LOCALS~1\Temp\mbuild_8E5F8A58-0362-4E81-02AF-0DC2BDC96BFA\mbuild_tmp.rsp:
  C:\DOCUME~1\Yetao\LOCALS~1\Temp\mbuild_8E5F8A58-0362-4E81-02AF-0DC2BDC96BFA\Untitled3_main.obj  C:\DOCUME~1\Yetao\LOCALS~1\Temp\mbuild_8E5F8A58-0362-4E81-02AF-0DC2BDC96BFA\Untitled3_mcc_component_data.obj


--> "link "/out:D:\MATLAB\R2007a\work\Untitled3\src\Untitled3.exe" kernel32.lib user32.lib gdi32.lib advapi32.lib oleaut32.lib ole32.lib /LIBPATH:"D:\MATLAB\R2007b\extern\lib\win32\microsoft" /nologo mclmcrrt.lib  @C:\DOCUME~1\Yetao\LOCALS~1\Temp\mbuild_8E5F8A58-0362-4E81-02AF-0DC2BDC96BFA\mbuild_tmp.rsp  "


--> "if exist C:\DOCUME~1\Yetao\LOCALS~1\Temp\mbuild_8E5F8A58-0362-4E81-02AF-0DC2BDC96BFA\templib.def del C:\DOCUME~1\Yetao\LOCALS~1\Temp\mbuild_8E5F8A58-0362-4E81-02AF-0DC2BDC96BFA\templib.def"

'cmd' 2?ê??ú2??òía2??üá?£?ò22?ê??é??DDμ?3ìDò
?ò?ú′|àí???t?£
Error: An error occurred while shelling out to mbuild (error code = 1).
Unable to build executable.
??? Error using ==> mcc
Error executing mcc, return status = 1.
 楼主| 发表于 2007-12-27 22:36:29 | 显示全部楼层 来自 湖北武汉
Simdroid开发平台
问题已解决
需要在系统变量path下增加c:\WINDOWS\system32

评分

1

查看全部评分

回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-3-29 17:16 , Processed in 0.040166 second(s), 18 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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