필터 지우기
필터 지우기

Make error in compiling simulink 3d simulink file

조회 수: 3 (최근 30일)
Pratap Bhanu Solanki
Pratap Bhanu Solanki 2011년 7월 31일
[EDIT: 20110731 17:37 - reformat - WDR]
Hello all,
I am working on simulink for 3d animation but I receive this error when I compile the file.This error was not shown sometime when I previously worked with it.So can anyone suggest me what is the supposed cause of the error
The error comes under the heading 'Make error' with this dialogue The dialogue is as follows:
Making simulation target "fish_sfun", ...
C:\Program Files\MATLAB\R2010b\slprj\_sfprj\fish\_self\sfun\src>call "mexopts.bat"
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
### Compiling "fish_sfun.c"
cl.exe /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /MD /I "c:\program files\matlab\r2010b\extern\include" /I "c:\program files\matlab\r2010b\simulink\include" /I "c:\program files\matlab\r2010b\stateflow\c\mex\include" /I "c:\program files\matlab\r2010b\stateflow\c\debugger\include" "fish_sfun.c"
fish_sfun.c
### Compiling "fish_sfun_registry.c"
cl.exe /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /MD /I "c:\program files\matlab\r2010b\extern\include" /I "c:\program files\matlab\r2010b\simulink\include" /I "c:\program files\matlab\r2010b\stateflow\c\mex\include" /I "c:\program files\matlab\r2010b\stateflow\c\debugger\include" "fish_sfun_registry.c"
fish_sfun_registry.c
### Compiling "c2_fish.c"
cl.exe /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /MD /I "c:\program files\matlab\r2010b\extern\include" /I "c:\program files\matlab\r2010b\simulink\include" /I "c:\program files\matlab\r2010b\stateflow\c\mex\include" /I "c:\program files\matlab\r2010b\stateflow\c\debugger\include" "c2_fish.c"
c2_fish.c
### Linking ...
link.exe /nologo /dll /OPT:NOREF /export:mexFunction /OUT:fish_sfun.mexw64 /map:"fish_sfun.map" "c:\program files\matlab\r2010b\stateflow\c\mex\lib\win64\sfc_mex.lib" "c:\program files\matlab\r2010b\stateflow\c\debugger\lib\win64\sfc_debug.lib" "C:\Program Files\MATLAB\R2010b\extern\lib\win64\microsoft\libmx.lib" "C:\Program Files\MATLAB\R2010b\extern\lib\win64\microsoft\libmex.lib" "C:\Program Files\MATLAB\R2010b\extern\lib\win64\microsoft\libmat.lib" "C:\Program Files\MATLAB\R2010b\extern\lib\win64\microsoft\libfixedpoint.lib" "C:\Program Files\MATLAB\R2010b\extern\lib\win64\microsoft\libut.lib" "C:\Program Files\MATLAB\R2010b\extern\lib\win64\microsoft\libmwmathutil.lib" "C:\Program Files\MATLAB\R2010b\extern\lib\win64\microsoft\libemlrt.lib" "c:\program files\matlab\r2010b\lib\win64\libippmwipt.lib" "c:\program files\matlab\r2010b\extern\lib\win64\microsoft\libmwblascompat32.lib" @fish_sfun.mol
Creating library fish_sfun.lib and object fish_sfun.exp
mt -outputresource:"fish_sfun.mexw64;2" -manifest "fish_sfun.mexw64.manifest"
Microsoft (R) Manifest Tool version 5.2.3790.2076
Copyright (c) Microsoft Corporation 2005.
All rights reserved.
### Created fish_sfun.mexw64
Make successful for machine: "fish"
*
*moving fish_sfun.mexw64 from C:\Program Files\MATLAB\R2010b\slprj\_sfprj\fish\_self\sfun\src to C:\Program Files\MATLAB\R2010b failed.*
The problem here is only with the last part all other things are fine (as it seems) with this dialogue.
Any suggestions will be very helpful for me as my whole project work is halted because of this.

채택된 답변

MarkB
MarkB 2011년 8월 16일
I second Walter's theory about the writability of the directory. An easy way to check this would be to run MATLAB as administrator and see if the problem occurs.
  댓글 수: 1
Pratap Bhanu Solanki
Pratap Bhanu Solanki 2011년 8월 21일
Thanks, that problem solved by running matlab as administrator.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2011년 7월 31일
I would not generally expect C:\Program Files\MATLAB\R2010b to be writable by the user.
Which directory are you cd'd to when you start the compiling?
  댓글 수: 1
Pratap Bhanu Solanki
Pratap Bhanu Solanki 2011년 8월 14일
Generally I do not change directory while compiling .
More over this problem does not come sometimes,but am not able to figure out when it gives error and when not.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by