Path: news.mathworks.com!not-for-mail
From: "Guoliang Zhang" <zhangl@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Compiling Simulink problem
Date: Tue, 15 Jul 2008 10:33:00 -0400
Organization: The MathWorks, Inc.
Lines: 66
Message-ID: <g5ices$n29$1@fred.mathworks.com>
References: <g5fl90$8$1@fred.mathworks.com> <g5geua$81b$1@fred.mathworks.com> <g5hra2$63s$1@fred.mathworks.com>
NNTP-Posting-Host: zhangg-old.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1216132380 23625 144.212.114.146 (15 Jul 2008 14:33:00 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 15 Jul 2008 14:33:00 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Xref: news.mathworks.com comp.soft-sys.matlab:479513



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
>>
>