Path: news.mathworks.com!not-for-mail
From: "Matthew Wade" <cosmicspacepig@googlemail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Real Time Workshop build error
Date: Thu, 10 Jul 2008 09:51:06 +0000 (UTC)
Organization: ttz-Bremerhaven
Lines: 52
Message-ID: <g54m2a$p5s$1@fred.mathworks.com>
Reply-To: "Matthew Wade" <cosmicspacepig@googlemail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1215683466 25788 172.30.248.38 (10 Jul 2008 09:51:06 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 10 Jul 2008 09:51:06 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1052756
Xref: news.mathworks.com comp.soft-sys.matlab:478562



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