|
Hi,
I am a first time user of RTW and have got the basics - so
I think this problem relates to some other issue that I am
not aware of at this stage.
I have a model containing a single s-function (reactor) and
two inputs and two outputs (workspace).
(Normally the initiation file is run via an m-file and
simulation time is user defined from a GUI, but I
circumvented this for now).
So, I have followed the basic instructions for creating a
stand-alone version of the model.
!mkdir
Config. Paramters (fixed-step, Generic real time target) etc
I initiate the required input parameters by calling two
functions from the workspace and then begin the build.
Everything works fine until I get these error messages:
Error anaerobio_1R.c: .\anaerobio_1R.h: 775 syntax error;
found '.' expecting ';'
Error anaerobio_1R.c: .\anaerobio_1R.h: 775 syntax
skipping '.'
Error anaerobio_1R.c: .\anaerobio_1R.h: 775 syntax error;
found 'typedef' expecting ';'
Error anaerobio_1R.c: .\anaerobio_1R_private.h: 42
redeclaration of 'reactor' previously declared
at .\anaerobio_1R.h 775
gmake: *** [anaerobio_1R.obj] Error 0x1
I guess the error is something to do with the reactor.h
(header file) or reactor.c file.
I have tried using RTW with a simple model and it works
fine, but not for this.
Any ideas would be welcome
Cheers
Matt
|