This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem with the gmake command(matlab -> Keil)

hello,
I have a problem when I want to generate code from Matlab/Simulink with real time workshop for a model:
That is what Matlab says to me:
### Starting Real-Time Workshop build procedure for model: test
### Generating code into build directory: .\test_c167_rtw
### Invoking Target Language Compiler on test.rtw
tlc -r .\test_c167_rtw\test.rtw 'D:\Matlab6p1\toolbox\c167\bin\c167.tlc' -O.\test_c167_rtw '-ID:\Matlab6p1\toolbox\c167\bin' '-ID:\Matlab6p1\rtw\c\tlc' -aCycTI_pin="P3^2" -aEnforceIntegerDowncast=1 -aExtMode=1 -aFoldNonRolledExpr=1 -aForceParamTrailComments=0 -aGenerateComments=1 -aIncHierarchyInIds=0 -aInlineInvariantSignals=0 -aInlineParameters=0 -aLocalBlockOutputs=1 -aMem_Mod="Huge" -aRTWVerbose=1 -aRollThreshold=5 -aSerTI_pin="P3^3" -aShowEliminatedStatements=1 -aTiming_signals=0 -abaudrate=57600 -aport="COM1" -aReleaseVersion=12.1 -p10000
### Loading TMW TLC function libraries
..
### Initial pass through model to cache user defined code
### Caching model source code
..
### Creating (RealTime) source file test.c
.
### Creating model header file test.h
### Creating model header file test_export.h
### Creating parameter file test_prm.h
### Creating registration file test_reg.h
### Creating data type transition file test_dt.c
### TLC code generation complete.
### Creating project marker file: rtw_proj.tmw
### Creating test.mk from D:\Matlab6p1\toolbox\c167\bin\c167.tmf
### Building test: D:\Matlab6p1\toolbox\c167\bin\gmake.exe -f test.mk
Creating link file D:\Matlab6p1\toolbox\c167\work\test_c167_rtw\link.lin
D:\Matlab6p1\toolbox\c167\bin\gmake.exe: *** [before] Error 2012694356

When I try to build the target with Keil(C166) with the files created by matlab, These errors appears to me:

Simstruc.h(323): error 320: must define one of RT, NRT, MATLAB_MEX_FILE

Can you tell me were I'm wrong
Thank you and excuse me for my very bad english langage

0