Path: news.mathworks.com!not-for-mail
From: "Matthew Wade" <cosmicspacepig@googlemail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Compiling Simulink problem
Date: Wed, 16 Jul 2008 07:00:07 +0000 (UTC)
Organization: ttz-Bremerhaven
Lines: 112
Message-ID: <g5k69n$g2c$1@fred.mathworks.com>
References: <g5fl90$8$1@fred.mathworks.com> <g5geua$81b$1@fred.mathworks.com> <g5hra2$63s$1@fred.mathworks.com> <g5ices$n29$1@fred.mathworks.com>
Reply-To: "Matthew Wade" <cosmicspacepig@googlemail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1216191607 16460 172.30.248.35 (16 Jul 2008 07:00:07 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 16 Jul 2008 07:00:07 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1052756
Xref: news.mathworks.com comp.soft-sys.matlab:479679



Hi GZ,

As I am away from the office for the next week I wont be 
able to access the code and give you the error log.

With regard to the other questions:

I have all the files necessary to run the simulink model. I 
do not know if there are extra files missing, but I can ask 
my colleague. I will also ask i he used C or C++.

No S-function name was changed.

As my colleague can compile the model with Visal Studio not 
LCC, I assume that this is the problem. But it could also 
be that he has "all files" on his computer and passed only 
those necessary to operate the model inside Simulink/Matlab 
environment.

Best regards,

Matt




"Guoliang Zhang" <zhangl@mathworks.com> wrote in message 
<g5ices$n29$1@fred.mathworks.com>...
> if your colleague only sent you the OBJ file that was 
compiled from 
> reactor.c, that obj file is sensitive to compiler of his 
choice. . in this 
> case, you would need to have visual studio (good news 
there is a free 
> version called Visual Studio Express that Matlab do 
support since R2007b). 
> But that would result in Linker error instead of compiler 
error. To help you 
> further can you answer these questions?
> 
> Do you have all your source files? are all sources files 
written in C (not 
> c++)? Did you rename any Sfunctions?
> 
> can you paste the full log from matlab output (choose 
verbose from 
> configuration parameters->Real-Time Workshop->Debug-
>Verbose)? what is the 
> line 775 and its surrounding lines of code? (can you post 
a snippet of this 
> section of code?)
> 
> Regards
> 
> GZ
> 
> 
> 
> 
> if you DO have the source file of reactor.c (and all 
other source files you 
> would need), then there should be no issue regarding the 
compiler in use. It 
> might be the configuration settings
> 
> "Matthew Wade" <cosmicspacepig@googlemail.com> wrote in 
message 
> news:g5hra2$63s$1@fred.mathworks.com...
> > Guoliang,
> >
> > The Reactor file is the c-file used by the "reactor 
block"
> > in the simulink model and, from what my colleague says, 
was
> > compiled using Visual Studio.
> >
> > I asked him to try RT Workshop using the LCC compiler
> > (default) and the Visual Studio compiler. He 
successfully
> > managed to compile the simulink model with the visual
> > studio but not LCC.
> >
> > This suggests that because reactor.c was compiled with
> > visual studio, I must also compile the simulink model 
with
> > visual studio.
> >
> > Is the only option to purchase Visual Studio?
> >
> > Cheers,
> >
> > Matt
> >
> > "Guoliang Zhang" <zhangl@mathworks.com> wrote in message
> > <g5geua$81b$1@fred.mathworks.com>...
> >> what is the "reactor"? is it another model, hand-code 
or
> > your s-function's
> >> name?
> >>
> >> did your parterner send you the source files for the
> > sfunction?
> >>
> >> it seems you are missing some files, not the compiler's
> > problem
> >>
> >> GZ
> >>
> > 
> 
>