Real time workshop compilation NMAKE error U1077

I am trying to compile a model with Real Time Workshop. I loaded the workspace and hit Ctrl+B to build to r-sim target, but it returns an error. Can anyone explain this error? Here is the log:
### Invoking custom build hook: CodeGenBeforeTLC
### Invoking Target Language Compiler on MVM_Model.rtw
### Using System Target File: C:\Program Files\MATLAB\R2012b\rtw\c\rsim\rsim.tlc
..
### Loading TLC function libraries
................................................
### Initial pass through model to cache user defined code
...............................................................................
...............................................................................
..................
### Caching model source code
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...........
### Writing source file MVM_Model.c
.
### Writing header file MVM_Model_private.h
### Writing header file MVM_Model.h
### Writing header file MVM_Model_types.h
.
### Writing header file rtwtypes.h
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
.
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
.
### Writing source file rtGetNaN.c
### Writing header file rtmodel.h
### Writing source file MVM_Model_data.c
.
### Writing header file rt_defines.h
### TLC code generation complete.
### Generating TLC interface API.
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
...............................................................................
..........................................................................
### Creating data type transition file MVM_Model_dt.h
...............................................................................
...............................................................................
...................................................................
### Processing Template Makefile: C:\Program Files\MATLAB\R2012b\rtw\c\rsim\rsim_vcx64.tmf
### MVM_Model.mk which is generated from C:\Program Files\MATLAB\R2012b\rtw\c\rsim\rsim_vcx64.tmf is up to date
### Building MVM_Model: .\MVM_Model.bat
C:\SA_Work\MVM_Model_rsim_rtw>call setup_mssdk71.bat
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
### Compiling MVM_Model.c
cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_AMD64_=1 -DWIN64 -D_WIN64 -DWIN32 -D_WIN32 -W4 -D_WINNT -D_WIN32_WINNT=0x0500 -DNTDDI_VERSION=0x05000000 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -MT -DRSIM_PARAMETER_LOADING /wd4996 /O2 /Oy- -DMODEL=MVM_Model -DHAVESTDIO -DNRT -DRSIM_WITH_SL_SOLVER MVM_Model.c
MVM_Model.c
C:\lib_autocode\CATutils_MatLab\toolbox\Palette\Map\beu_map\src\std_t_vcc_win32.h(228) : warning C4005: 'SIZE_MAX' : macro redefinition
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\limits.h(80) : see previous definition of 'SIZE_MAX'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\cl.EXE"' : return code '0x2'
Stop.
The make command returned an error of 2
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
### Build procedure for model: 'MVM_Model' aborted due to an error.
__________________
This is the compiler I'm using: Microsoft Software Development Kit (SDK) 7.1 in C:\Program Files (x86)\Microsoft Visual Studio 10.0

Respuestas (0)

Categorías

Más información sobre Simulink Coder en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

Sam
el 16 de Jun. de 2014

Editada:

Sam
el 16 de Jun. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by