MATLAB Answers

Problem with running Matlab Block function

7 views (last 30 days)
Subesh Aryal
Subesh Aryal on 19 Jun 2012
Below is the error I receive after I start the simulation. Running as an administrator didn't work for me. Please advise!
Making simulation target "PROJECT_FROMSCRATCH_sfun", ...
C:\Program Files\MATLAB\R2011a\slprj\_sfprj\PROJECT_FROMSCRATCH\_self\sfun\src>call "mexopts.bat"
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
### Compiling PROJECT_FROMSCRATCH_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" "PROJECT_FROMSCRATCH_sfun.c"
PROJECT_FROMSCRATCH_sfun.c
### Compiling PROJECT_FROMSCRATCH_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" "PROJECT_FROMSCRATCH_sfun_registry.c"
PROJECT_FROMSCRATCH_sfun_registry.c
### Compiling c2_PROJECT_FROMSCRATCH.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" "c2_PROJECT_FROMSCRATCH.c"
c2_PROJECT_FROMSCRATCH.c
### Linking ...
link.exe /nologo /dll /OPT:NOREF /export:mexFunction /OUT:PROJECT_FROMSCRATCH_sfun.mexw64 /map:"PROJECT_FROMSCRATCH_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" @PROJECT_FROMSCRATCH_sfun.mol
LINK : fatal error LNK1181: cannot open input file 'C:\Program Files\MATLAB\R2011a\lib\win64\libippmwipt.lib'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\link.exe"' : return code '0x49d'
Stop.

  0 Comments

Sign in to comment.

Answers (1)

Kaustubha Govind
Kaustubha Govind on 19 Jun 2012
The error says "cannot open input file 'C:\Program Files\MATLAB\R2011a\lib\win64\libippmwipt.lib' " - is this file present in your installation?

  2 Comments

Subesh Aryal
Subesh Aryal on 20 Jun 2012
Solved! I simply had to copy and paste libippmwipt.lib to the current directory.
Kaustubha Govind
Kaustubha Govind on 21 Jun 2012
Subesh: Glad that worked, but you really shouldn't have to do that. Perhaps you'll want to explore this further later at your leisure. :)

Sign in to comment.


Translated by