why is there an error when i built every simulink model?

1 view (last 30 days)
I work on Matlab R2011b, windows Vista, I've installed lcc compiler,and visual C++ professional 6.0. In the mex setup I select the lcc compiler (but the error there is also with C++ compiler).
I open a simulink model, also a very simple model (like ' costant => abs => display ' ), and it run correctly. But when I do ctrl+B , matlab give me error. The messages are:
### Caching model source code ......................... ### Writing header file Untitled1_types.h ### Writing header file Untitled1.h . ### Writing header file rtwtypes.h ### Writing source file Untitled1.c ### Writing header file Untitled1_private.h . ### Writing header file rtmodel.h ### Writing header file rt_nonfinite.h ### Writing source file rt_nonfinite.c . ### Writing header file rt_defines.h ### Writing header file rtGetInf.h ### Writing source file rtGetInf.c . ### Writing header file rtGetNaN.h ### Writing source file rtGetNaN.c ### TLC code generation complete. . ### Processing Template Makefile: C:\Program Files\MATLAB\R2011b\rtw\c\grt\grt_lcc.tmf ### Untitled1.mk which is generated from C:\Program Files\MATLAB\R2011b\rtw\c\grt\grt_lcc.tmf is up to date ### Building Untitled1: .\Untitled1.bat
C:\Users\max\Desktop\tesi\7 aprile lqrsim2\Untitled1_grt_rtw>set MATLAB=C:\Program Files\MATLAB\R2011b
C:\Users\max\Desktop\tesi\7 aprile lqrsim2\Untitled1_grt_rtw>"C:\Program Files\MATLAB\R2011b\bin\win32\gmake" -f Untitled1.mk GENERATE_REPORT=0 C:/PROGRA~1/MATLAB/R2011b\sys\lcc\bin\lcc -c -FoUntitled1.obj -DUSE_RTMODEL -DMODEL=Untitled1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -I. -I.. -IC:/PROGRA~1/MATLAB/R2011b\simulink\include -IC:/PROGRA~1/MATLAB/R2011b\extern\include -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\libsrc -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\common -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\tcpip -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\serial -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\custom -IC:/Users/max/Desktop/tesi/7APRIL~1/Untitled1_grt_rtw -IC:/Users/max/Desktop/tesi/7APRIL~1 -IC:/PROGRA~1/MATLAB/R2011b\sys\lcc\include -noregistrylookup Untitled1.c Warning Untitled1.c: 61 Statement has no effect 0 errors, 1 warnings C:/PROGRA~1/MATLAB/R2011b\sys\lcc\bin\lcc -c -FortGetInf.obj -DUSE_RTMODEL -DMODEL=Untitled1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -I. -I.. -IC:/PROGRA~1/MATLAB/R2011b\simulink\include -IC:/PROGRA~1/MATLAB/R2011b\extern\include -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\libsrc -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\common -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\tcpip -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\serial -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\custom -IC:/Users/max/Desktop/tesi/7APRIL~1/Untitled1_grt_rtw -IC:/Users/max/Desktop/tesi/7APRIL~1 -IC:/PROGRA~1/MATLAB/R2011b\sys\lcc\include -noregistrylookup rtGetInf.c C:/PROGRA~1/MATLAB/R2011b\sys\lcc\bin\lcc -c -FortGetNaN.obj -DUSE_RTMODEL -DMODEL=Untitled1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -I. -I.. -IC:/PROGRA~1/MATLAB/R2011b\simulink\include -IC:/PROGRA~1/MATLAB/R2011b\extern\include -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\libsrc -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\common -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\tcpip -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\serial -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\custom -IC:/Users/max/Desktop/tesi/7APRIL~1/Untitled1_grt_rtw -IC:/Users/max/Desktop/tesi/7APRIL~1 -IC:/PROGRA~1/MATLAB/R2011b\sys\lcc\include -noregistrylookup rtGetNaN.c C:/PROGRA~1/MATLAB/R2011b\sys\lcc\bin\lcc -c -Fort_nonfinite.obj -DUSE_RTMODEL -DMODEL=Untitled1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -I. -I.. -IC:/PROGRA~1/MATLAB/R2011b\simulink\include -IC:/PROGRA~1/MATLAB/R2011b\extern\include -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\libsrc -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\common -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\tcpip -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\serial -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\custom -IC:/Users/max/Desktop/tesi/7APRIL~1/Untitled1_grt_rtw -IC:/Users/max/Desktop/tesi/7APRIL~1 -IC:/PROGRA~1/MATLAB/R2011b\sys\lcc\include -noregistrylookup rt_nonfinite.c Warning rt_nonfinite.c: 39 Statement has no effect 0 errors, 1 warnings C:/PROGRA~1/MATLAB/R2011b\sys\lcc\bin\lcc -c -Fogrt_main.obj -DUSE_RTMODEL -DMODEL=Untitled1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -I. -I.. -IC:/PROGRA~1/MATLAB/R2011b\simulink\include -IC:/PROGRA~1/MATLAB/R2011b\extern\include -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\libsrc -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\common -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\tcpip -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\serial -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\custom -IC:/Users/max/Desktop/tesi/7APRIL~1/Untitled1_grt_rtw -IC:/Users/max/Desktop/tesi/7APRIL~1 -IC:/PROGRA~1/MATLAB/R2011b\sys\lcc\include -noregistrylookup C:/PROGRA~1/MATLAB/R2011b/rtw/c/grt/grt_main.c C:/PROGRA~1/MATLAB/R2011b\sys\lcc\bin\lcc -c -Fort_sim.obj -DUSE_RTMODEL -DMODEL=Untitled1 -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -I. -I.. -IC:/PROGRA~1/MATLAB/R2011b\simulink\include -IC:/PROGRA~1/MATLAB/R2011b\extern\include -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\libsrc -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\common -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\tcpip -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\serial -IC:/PROGRA~1/MATLAB/R2011b\rtw\c\src\ext_mode\custom -IC:/Users/max/Desktop/tesi/7APRIL~1/Untitled1_grt_rtw -IC:/Users/max/Desktop/tesi/7APRIL~1 -IC:/PROGRA~1/MATLAB/R2011b\sys\lcc\include -noregistrylookup C:/PROGRA~1/MATLAB/R2011b/rtw/c/src/rt_sim.c Warning C:/PROGRA~1/MATLAB/R2011b/rtw/c/src/rt_sim.c: 68 static `struct TimingData_Tag td_struct' is not referenced 0 errors, 1 warnings C:/PROGRA~1/MATLAB/R2011b\sys\lcc\bin\lcclnk -s -LC:/PROGRA~1/MATLAB/R2011b\sys\lcc\lib -o ../Untitled1.exe Untitled1.obj rtGetInf.obj rtGetNaN.obj rt_logging.obj rt_nonfinite.obj grt_main.obj rt_sim.obj @Untitled1_ref.rsp "cmd" non Š riconosciuto come comando interno o esterno, un programma eseguibile o un file batch. gmake: * [../Untitled1.exe] Error 1 ### Build procedure for model: 'Untitled1' aborted due to an error.
N.B. "non Š riconosciuto come comando interno o esterno, un programma eseguibile o un file batch" is in italian, it means "is not recognized as an internal or external command, operable program or batch file"

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!