<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172493</link>
    <title>MATLAB Central Newsreader - Compiling Simulink problem</title>
    <description>Feed for thread: Compiling Simulink problem</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Mon, 14 Jul 2008 13:45:04 -0400</pubDate>
      <title>Compiling Simulink problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172493#442815</link>
      <author>Matthew Wade</author>
      <description>Hi,&lt;br&gt;
&lt;br&gt;
Some days ago I posted on a problem that I was having with &lt;br&gt;
compiling a simulink model using Real-Time Workshop:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/matlabcentral/newsreader/view_threa&quot;&gt;http://www.mathworks.com/matlabcentral/newsreader/view_threa&lt;/a&gt;&lt;br&gt;
d/172334#442216&lt;br&gt;
&lt;br&gt;
After some investigation I found that the model compiles &lt;br&gt;
fine on my colleagues computer (in Spain, so no chance to &lt;br&gt;
play around).&lt;br&gt;
&lt;br&gt;
The only conceivable reason is that he uses Visual Studio &lt;br&gt;
C/C++ compiler and I only have the base lcc compiler. &lt;br&gt;
&lt;br&gt;
He already compiled some of the c-code that the model &lt;br&gt;
blocks use using this Vis Studio compiler, so am I right in &lt;br&gt;
thinking that my lcc compiler will not be able to use these &lt;br&gt;
c files during the Real Time Workshop Build process?&lt;br&gt;
&lt;br&gt;
Cheers&lt;br&gt;
Matt</description>
    </item>
    <item>
      <pubDate>Mon, 14 Jul 2008 21:02:41 -0400</pubDate>
      <title>Re: Compiling Simulink problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172493#442971</link>
      <author>Guoliang Zhang</author>
      <description>what is the &quot;reactor&quot;? is it another model, hand-code or your s-function's &lt;br&gt;
name?&lt;br&gt;
&lt;br&gt;
did your parterner send you the source files for the sfunction?&lt;br&gt;
&lt;br&gt;
it seems you are missing some files, not the compiler's problem&lt;br&gt;
&lt;br&gt;
GZ&lt;br&gt;
&lt;br&gt;
&quot;Matthew Wade&quot; &amp;lt;cosmicspacepig@googlemail.com&amp;gt; wrote in message &lt;br&gt;
news:g5fl90$8$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Some days ago I posted on a problem that I was having with&lt;br&gt;
&amp;gt; compiling a simulink model using Real-Time Workshop:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/matlabcentral/newsreader/view_threa&quot;&gt;http://www.mathworks.com/matlabcentral/newsreader/view_threa&lt;/a&gt;&lt;br&gt;
&amp;gt; d/172334#442216&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; After some investigation I found that the model compiles&lt;br&gt;
&amp;gt; fine on my colleagues computer (in Spain, so no chance to&lt;br&gt;
&amp;gt; play around).&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The only conceivable reason is that he uses Visual Studio&lt;br&gt;
&amp;gt; C/C++ compiler and I only have the base lcc compiler.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; He already compiled some of the c-code that the model&lt;br&gt;
&amp;gt; blocks use using this Vis Studio compiler, so am I right in&lt;br&gt;
&amp;gt; thinking that my lcc compiler will not be able to use these&lt;br&gt;
&amp;gt; c files during the Real Time Workshop Build process?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Cheers&lt;br&gt;
&amp;gt; Matt&lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Tue, 15 Jul 2008 09:40:19 -0400</pubDate>
      <title>Re: Compiling Simulink problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172493#443081</link>
      <author>Matthew Wade</author>
      <description>Guoliang,&lt;br&gt;
&lt;br&gt;
The Reactor file is the c-file used by the &quot;reactor block&quot; &lt;br&gt;
in the simulink model and, from what my colleague says, was &lt;br&gt;
compiled using Visual Studio.&lt;br&gt;
&lt;br&gt;
I asked him to try RT Workshop using the LCC compiler &lt;br&gt;
(default) and the Visual Studio compiler. He successfully &lt;br&gt;
managed to compile the simulink model with the visual &lt;br&gt;
studio but not LCC.&lt;br&gt;
&lt;br&gt;
This suggests that because reactor.c was compiled with &lt;br&gt;
visual studio, I must also compile the simulink model with &lt;br&gt;
visual studio.&lt;br&gt;
&lt;br&gt;
Is the only option to purchase Visual Studio?&lt;br&gt;
&lt;br&gt;
Cheers,&lt;br&gt;
&lt;br&gt;
Matt&lt;br&gt;
&lt;br&gt;
&quot;Guoliang Zhang&quot; &amp;lt;zhangl@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g5geua$81b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; what is the &quot;reactor&quot;? is it another model, hand-code or &lt;br&gt;
your s-function's &lt;br&gt;
&amp;gt; name?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; did your parterner send you the source files for the &lt;br&gt;
sfunction?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; it seems you are missing some files, not the compiler's &lt;br&gt;
problem&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; GZ&lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Tue, 15 Jul 2008 14:33:00 -0400</pubDate>
      <title>Re: Compiling Simulink problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172493#443159</link>
      <author>Guoliang Zhang</author>
      <description>if your colleague only sent you the OBJ file that was compiled from &lt;br&gt;
reactor.c, that obj file is sensitive to compiler of his choice. . in this &lt;br&gt;
case, you would need to have visual studio (good news there is a free &lt;br&gt;
version called Visual Studio Express that Matlab do support since R2007b). &lt;br&gt;
But that would result in Linker error instead of compiler error. To help you &lt;br&gt;
further can you answer these questions?&lt;br&gt;
&lt;br&gt;
Do you have all your source files? are all sources files written in C (not &lt;br&gt;
c++)? Did you rename any Sfunctions?&lt;br&gt;
&lt;br&gt;
can you paste the full log from matlab output (choose verbose from &lt;br&gt;
configuration parameters-&amp;gt;Real-Time Workshop-&amp;gt;Debug-&amp;gt;Verbose)? what is the &lt;br&gt;
line 775 and its surrounding lines of code? (can you post a snippet of this &lt;br&gt;
section of code?)&lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;
&lt;br&gt;
GZ&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
if you DO have the source file of reactor.c (and all other source files you &lt;br&gt;
would need), then there should be no issue regarding the compiler in use. It &lt;br&gt;
might be the configuration settings&lt;br&gt;
&lt;br&gt;
&quot;Matthew Wade&quot; &amp;lt;cosmicspacepig@googlemail.com&amp;gt; wrote in message &lt;br&gt;
news:g5hra2$63s$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Guoliang,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The Reactor file is the c-file used by the &quot;reactor block&quot;&lt;br&gt;
&amp;gt; in the simulink model and, from what my colleague says, was&lt;br&gt;
&amp;gt; compiled using Visual Studio.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I asked him to try RT Workshop using the LCC compiler&lt;br&gt;
&amp;gt; (default) and the Visual Studio compiler. He successfully&lt;br&gt;
&amp;gt; managed to compile the simulink model with the visual&lt;br&gt;
&amp;gt; studio but not LCC.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; This suggests that because reactor.c was compiled with&lt;br&gt;
&amp;gt; visual studio, I must also compile the simulink model with&lt;br&gt;
&amp;gt; visual studio.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Is the only option to purchase Visual Studio?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Cheers,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Matt&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &quot;Guoliang Zhang&quot; &amp;lt;zhangl@mathworks.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;g5geua$81b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; what is the &quot;reactor&quot;? is it another model, hand-code or&lt;br&gt;
&amp;gt; your s-function's&lt;br&gt;
&amp;gt;&amp;gt; name?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; did your parterner send you the source files for the&lt;br&gt;
&amp;gt; sfunction?&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; it seems you are missing some files, not the compiler's&lt;br&gt;
&amp;gt; problem&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; GZ&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Wed, 16 Jul 2008 07:00:07 -0400</pubDate>
      <title>Re: Compiling Simulink problem</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172493#443325</link>
      <author>Matthew Wade</author>
      <description>Hi GZ,&lt;br&gt;
&lt;br&gt;
As I am away from the office for the next week I wont be &lt;br&gt;
able to access the code and give you the error log.&lt;br&gt;
&lt;br&gt;
With regard to the other questions:&lt;br&gt;
&lt;br&gt;
I have all the files necessary to run the simulink model. I &lt;br&gt;
do not know if there are extra files missing, but I can ask &lt;br&gt;
my colleague. I will also ask i he used C or C++.&lt;br&gt;
&lt;br&gt;
No S-function name was changed.&lt;br&gt;
&lt;br&gt;
As my colleague can compile the model with Visal Studio not &lt;br&gt;
LCC, I assume that this is the problem. But it could also &lt;br&gt;
be that he has &quot;all files&quot; on his computer and passed only &lt;br&gt;
those necessary to operate the model inside Simulink/Matlab &lt;br&gt;
environment.&lt;br&gt;
&lt;br&gt;
Best regards,&lt;br&gt;
&lt;br&gt;
Matt&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Guoliang Zhang&quot; &amp;lt;zhangl@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g5ices$n29$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; if your colleague only sent you the OBJ file that was &lt;br&gt;
compiled from &lt;br&gt;
&amp;gt; reactor.c, that obj file is sensitive to compiler of his &lt;br&gt;
choice. . in this &lt;br&gt;
&amp;gt; case, you would need to have visual studio (good news &lt;br&gt;
there is a free &lt;br&gt;
&amp;gt; version called Visual Studio Express that Matlab do &lt;br&gt;
support since R2007b). &lt;br&gt;
&amp;gt; But that would result in Linker error instead of compiler &lt;br&gt;
error. To help you &lt;br&gt;
&amp;gt; further can you answer these questions?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Do you have all your source files? are all sources files &lt;br&gt;
written in C (not &lt;br&gt;
&amp;gt; c++)? Did you rename any Sfunctions?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; can you paste the full log from matlab output (choose &lt;br&gt;
verbose from &lt;br&gt;
&amp;gt; configuration parameters-&amp;gt;Real-Time Workshop-&amp;gt;Debug-&lt;br&gt;
&amp;gt;Verbose)? what is the &lt;br&gt;
&amp;gt; line 775 and its surrounding lines of code? (can you post &lt;br&gt;
a snippet of this &lt;br&gt;
&amp;gt; section of code?)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Regards&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; GZ&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; if you DO have the source file of reactor.c (and all &lt;br&gt;
other source files you &lt;br&gt;
&amp;gt; would need), then there should be no issue regarding the &lt;br&gt;
compiler in use. It &lt;br&gt;
&amp;gt; might be the configuration settings&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Matthew Wade&quot; &amp;lt;cosmicspacepig@googlemail.com&amp;gt; wrote in &lt;br&gt;
message &lt;br&gt;
&amp;gt; news:g5hra2$63s$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt; Guoliang,&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; The Reactor file is the c-file used by the &quot;reactor &lt;br&gt;
block&quot;&lt;br&gt;
&amp;gt; &amp;gt; in the simulink model and, from what my colleague says, &lt;br&gt;
was&lt;br&gt;
&amp;gt; &amp;gt; compiled using Visual Studio.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I asked him to try RT Workshop using the LCC compiler&lt;br&gt;
&amp;gt; &amp;gt; (default) and the Visual Studio compiler. He &lt;br&gt;
successfully&lt;br&gt;
&amp;gt; &amp;gt; managed to compile the simulink model with the visual&lt;br&gt;
&amp;gt; &amp;gt; studio but not LCC.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; This suggests that because reactor.c was compiled with&lt;br&gt;
&amp;gt; &amp;gt; visual studio, I must also compile the simulink model &lt;br&gt;
with&lt;br&gt;
&amp;gt; &amp;gt; visual studio.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Is the only option to purchase Visual Studio?&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Cheers,&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Matt&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &quot;Guoliang Zhang&quot; &amp;lt;zhangl@mathworks.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;g5geua$81b$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; what is the &quot;reactor&quot;? is it another model, hand-code &lt;br&gt;
or&lt;br&gt;
&amp;gt; &amp;gt; your s-function's&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; name?&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; did your parterner send you the source files for the&lt;br&gt;
&amp;gt; &amp;gt; sfunction?&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; it seems you are missing some files, not the compiler's&lt;br&gt;
&amp;gt; &amp;gt; problem&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; GZ&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; </description>
    </item>
  </channel>
</rss>

