VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

err when i want to genenate dll

I hope generate a dll in simulink, and I can succssed when the data types are int or single. But if i change the type in fixdt(1,16,1), then it wrong.

matalb version is 2010b. veristand version is 2012. 

the follows are the error that display in command windows.

 

### Compiling the source untitled
cl -Od -DUSE_RTMODEL -DNI_ROOTMODEL_untitled -DMODEL=untitled -DRT -DNUMST=1 -DTID01EQ=0 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -DNATIONAL_INSTRUMENTS_SIT -D_CRT_SECURE_NO_DEPRECATE -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -DNTDDI_VERSION=0x05000000 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -D_DLL -MD /MD -DNI_VERISTAND_MAINMODELFILE untitled.c
untitled.c
untitled.c(275) : warning C4013: 'pow' undefined; assuming extern returning int
untitled.c(455) : error C2065: 'sfix16_En1' : undeclared identifier
untitled.c(458) : error C2065: 'sfix16_En1' : undeclared identifier
NMAKE : fatal error U1077: '"c:\software\engineering\micro visual 2008\VC\BIN\cl.EXE"' : return code '0x2'
Stop.

C:\Users\lyw\Desktop\veristand\test\untitled_niVeriStand_rtw>echo The make command returned an error of 2
The make command returned an error of 2

C:\Users\lyw\Desktop\veristand\test\untitled_niVeriStand_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' 
### Real-Time Workshop build procedure for model: 'untitled' aborted due to an error.

 

thank you 

 

0 Kudos
Message 1 of 2
(5,617 Views)

Hi,

 

the following forum thread could help you

 

Build Error NMAKE for simulink model

0 Kudos
Message 2 of 2
(5,598 Views)