Problem with .mexw64 file

5 visualizaciones (últimos 30 días)
aa
aa el 23 de Mzo. de 2012
Comentada: Sriharsha el 9 de Feb. de 2016
I'm tryngto simulite a simulink file that contains a state flow chart and the software gives me this error, how can i solve it?
Making simulation target "Step_5_sfun", ...
C:\slprj\_sfprj\Step_5\_self\sfun\src>call "mexopts.bat"
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
### Compiling "Step_5_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 /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /I "C:\Program Files\MATLAB\R2011a\extern\include" /I "C:\Program Files\MATLAB\R2011a\simulink\include" /I "C:\Program Files\MATLAB\R2011a\stateflow\c\mex\include" /I "C:\Program Files\MATLAB\R2011a\stateflow\c\debugger\include" "Step_5_sfun.c"
Step_5_sfun.c
### Compiling "Step_5_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 /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /I "C:\Program Files\MATLAB\R2011a\extern\include" /I "C:\Program Files\MATLAB\R2011a\simulink\include" /I "C:\Program Files\MATLAB\R2011a\stateflow\c\mex\include" /I "C:\Program Files\MATLAB\R2011a\stateflow\c\debugger\include" "Step_5_sfun_registry.c"
Step_5_sfun_registry.c
### Compiling "c1_Step_5.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 /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD /I "C:\Program Files\MATLAB\R2011a\extern\include" /I "C:\Program Files\MATLAB\R2011a\simulink\include" /I "C:\Program Files\MATLAB\R2011a\stateflow\c\mex\include" /I "C:\Program Files\MATLAB\R2011a\stateflow\c\debugger\include" "c1_Step_5.c"
c1_Step_5.c
### Linking ...
link.exe /nologo /dll /OPT:NOREF /export:mexFunction /OUT:Step_5_sfun.mexw64 /map:"Step_5_sfun.map" "C:\Program Files\MATLAB\R2011a\stateflow\c\mex\lib\win64\sfc_mex.lib" "C:\Program Files\MATLAB\R2011a\stateflow\c\debugger\lib\win64\sfc_debug.lib" "C:\Program Files\MATLAB\R2011a\extern\lib\win64\microsoft\libmx.lib" "C:\Program Files\MATLAB\R2011a\extern\lib\win64\microsoft\libmex.lib" "C:\Program Files\MATLAB\R2011a\extern\lib\win64\microsoft\libmat.lib" "C:\Program Files\MATLAB\R2011a\extern\lib\win64\microsoft\libfixedpoint.lib" "C:\Program Files\MATLAB\R2011a\extern\lib\win64\microsoft\libut.lib" "C:\Program Files\MATLAB\R2011a\extern\lib\win64\microsoft\libmwmathutil.lib" "C:\Program Files\MATLAB\R2011a\extern\lib\win64\microsoft\libemlrt.lib" "C:\Program Files\MATLAB\R2011a\lib\win64\libippmwipt.lib" "C:\Program Files\MATLAB\R2011a\extern\lib\win64\microsoft\libmwblascompat32.lib" @Step_5_sfun.mol
Creating library Step_5_sfun.lib and object Step_5_sfun.exp
mt -outputresource:"Step_5_sfun.mexw64;2" -manifest "Step_5_sfun.mexw64.manifest"
Microsoft (R) Manifest Tool version 6.1.7716.0
Copyright (c) Microsoft Corporation 2009.
All rights reserved.
### Created Step_5_sfun.mexw64
Make successful for machine: "Step_5"
moving Step_5_sfun.mexw64 from C:\slprj\_sfprj\Step_5\_self\sfun\src to C:\ failed.

Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 23 de Mzo. de 2012
Looks like a Windows UAC issue to me. Could you try running your model from a directory other than C:\ ? Perhaps Windows need administrator privileges to write to C:, which Simulink is attempting to do when it fails. Either work from a sub-folder of C: (but, outside of "Program Files"), or when you start MATLAB, right-click on the icon and "Run as administrator".
  2 comentarios
aa
aa el 23 de Mzo. de 2012
prolem solved.
thank you!
Sriharsha
Sriharsha el 9 de Feb. de 2016
even i got the same problem now, how did you solve it? Did you run it as Administrator? or did you do anything else?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink Environment Customization en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by