MATLAB: Matlab lcc compiler giving error

MATLAB Compiler

i installed microsoft sdk 7 version. using mex-setup i changed compiler to microsoft sdk 7. mexopts.bat file which is located in appdata is correctly updated from file mssdk71opts.bat located inside matlab folder in mexopts folder when i build model,it is always using lcc compiler only. i dont know how to do to resolve this problem
below i mentioned steps matlab does when i compile a model
### Starting build procedure for model: untitled
### Generating code into build folder: e:\New folder\untitled_grt_rtw
Warning: The model 'untitled' does not have continuous states, hence Simulink is using the
solver 'FixedStepDiscrete' instead of solver 'ode3'. You can disable this diagnostic by
explicitly specifying a discrete solver in the solver tab of the Configuration Parameters
dialog, or by setting the 'Automatic solver parameter selection' diagnostic to 'none' in
the Diagnostics tab of the Configuration Parameters dialog
Warning: Unable to determine a fixed step size based on the sample times in the model
'untitled', because the model does not have any discrete sample times. Picking a fixed
step size of (0.2) based on simulation start and stop times. You can disable this
diagnostic by explicitly specifying a fixed step size in the Solver pane of the
Configuration Parameters dialog box, or setting the 'Automatic solver parameter selection'
diagnostic to 'none' in the Solver group on the Diagnostics pane of the Configuration
Parameters dialog box.
### Invoking Target Language Compiler on untitled.rtw
### Using System Target File: C:\Program Files\MATLAB\R2011b\rtw\c\grt\grt.tlc
### Loading TLC function libraries
.....
### Initial pass through model to cache user defined code
.
### Caching model source code
...........................
### Writing header file untitled.h
### Writing header file untitled_types.h
.
### Writing header file rtwtypes.h
### Writing source file untitled.c
### Writing header file untitled_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
### untitled.mk which is generated from C:\Program Files\MATLAB\R2011b\rtw\c\grt\grt_lcc.tmf is up to date
### Building untitled: .\untitled.bat
e:\New folder\untitled_grt_rtw>set MATLAB=C:\Program Files\MATLAB\R2011b
e:\New folder\untitled_grt_rtw>"C:\Program Files\MATLAB\R2011b\bin\win32\gmake" -f untitled.mk GENERATE_REPORT=0
C:/PROGRA~1/MATLAB/R2011b\sys\lcc\bin\lcc -c -Fountitled.obj -DUSE_RTMODEL -DMODEL=untitled -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 -Ie:/NEWFOL~1/untitled_grt_rtw -Ie:/NEWFOL~1 -IC:/PROGRA~1/MATLAB/R2011b\sys\lcc\include -noregistrylookup untitled.c
Warning untitled.c: 72 Statement has no effect
0 errors, 1 warnings
C:/PROGRA~1/MATLAB/R2011b\sys\lcc\bin\lcc -c -FortGetInf.obj -DUSE_RTMODEL -DMODEL=untitled -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 -Ie:/NEWFOL~1/untitled_grt_rtw -Ie:/NEWFOL~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=untitled -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 -Ie:/NEWFOL~1/untitled_grt_rtw -Ie:/NEWFOL~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=untitled -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 -Ie:/NEWFOL~1/untitled_grt_rtw -Ie:/NEWFOL~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=untitled -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 -Ie:/NEWFOL~1/untitled_grt_rtw -Ie:/NEWFOL~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=untitled -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 -Ie:/NEWFOL~1/untitled_grt_rtw -Ie:/NEWFOL~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 ../untitled.exe untitled.obj rtGetInf.obj rtGetNaN.obj rt_logging.obj rt_nonfinite.obj grt_main.obj rt_sim.obj @untitled_ref.rsp
'cmd' is not recognized as an internal or external command,
operable program or batch file.
gmake: *** [../untitled.exe] Error 1
### Build procedure for model: 'untitled' aborted due to an error.
>>

Best Answer

Which operating system are you using? If you are using Windows 95, Windows 98, or Windows ME then the program is command.com instead of cmd.exe
You might need to use
mbuild -setup
but I have not figured out yet when that is needed or not.
Related Question