<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to interpret compiler error message?</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/30419/how-to-interpret-compiler-error-message</link><description> 
Hello, I&amp;#39;m getting following error message: 

 
compiling RTX_Config.c... 
C:\Keil\ARM\RV31\INC\RTX_lib.c(185): error: #29: expected an
expression 

 
I&amp;#39;m using Keil uVision V4.71.2.0 tools. C compier Armcc.Exe
version v5.03.0.69 

 
Is the error in</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: How to interpret compiler error message?</title><link>https://community.arm.com/thread/143413?ContentTypeID=1</link><pubDate>Thu, 16 May 2013 11:58:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:14892698-fa5b-4226-bb94-265e7c6ec11b</guid><dc:creator>Jani Jani</dc:creator><description>&lt;p&gt;&lt;p&gt;
At the end of RTX_Config.c, RTX_lib.c is included. I&amp;#39;m not used
seeing files included at the end of a source file. I am only used to
header files included at the beginning of source file.&lt;/p&gt;

&lt;p&gt;
THANK YOU SO MUCH FOR YOUR HELP!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interpret compiler error message?</title><link>https://community.arm.com/thread/140585?ContentTypeID=1</link><pubDate>Thu, 16 May 2013 07:38:40 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9f32ee55-977c-4bc2-b5b5-def09806e182</guid><dc:creator>rtx user</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;It looks like RTX_lib.c might be #included by
RTX_Config.c&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Very likely. Keil have a habit of doing that with the &lt;i&gt;extra&lt;/i&gt;
packages of MDK professional.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interpret compiler error message?</title><link>https://community.arm.com/thread/137018?ContentTypeID=1</link><pubDate>Thu, 16 May 2013 07:06:24 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bc736329-317c-4b7b-82b3-70b5039e6c5a</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
From your original post:&lt;/p&gt;

&lt;pre&gt;
compiling RTX_Config.c...
C:\Keil\ARM\RV31\INC\RTX_lib.c(185): error: #29: expected an expression
&lt;/pre&gt;

&lt;p&gt;
It looks like RTX_lib.c might be #included by RTX_Config.c
...?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interpret compiler error message?</title><link>https://community.arm.com/thread/128178?ContentTypeID=1</link><pubDate>Thu, 16 May 2013 06:44:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ffd22522-6e49-4e0b-992c-890dfd6d04b7</guid><dc:creator>Jani Jani</dc:creator><description>&lt;p&gt;&lt;p&gt;
Filename RTX_lib.c has the #if condition as follows:&lt;/p&gt;

&lt;p&gt;
#if (__ARM__ &amp;amp;&amp;amp; __RTA_RTX_CONFIG) // error is &amp;quot;expected an
expression&amp;quot;&lt;/p&gt;

&lt;p&gt;
Filename RTX_Config.c has the following definition:&lt;/p&gt;

&lt;p&gt;
#define __RTA_RTX_CONFIG&lt;/p&gt;

&lt;p&gt;
Now, this error makes sense. Since __RTA_RTX_CONFIG is empty,
there is no expression.&lt;br /&gt;
But I cannot understand how RTX_lib.c knows about __RTA_RTX_CONFIG
because it&amp;#39;s defined&lt;br /&gt;
in a different .c file?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interpret compiler error message?</title><link>https://community.arm.com/thread/120058?ContentTypeID=1</link><pubDate>Wed, 15 May 2013 13:07:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cb245a86-0c76-4eb2-9e39-17e9ecd215f1</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Remember that the convention among &amp;#39;C&amp;#39; programmers is that symbols
in ALL UPPERCASE are &lt;b&gt;preprocessor macros&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;
So think how these preprocessor macros might expand:&lt;/p&gt;

&lt;pre&gt;
#if( &lt;b&gt;__ARM__ &lt;/b&gt;&amp;amp;&amp;amp; &lt;b&gt;__RTA_RTX_CONFIG&lt;/b&gt; )
&lt;/pre&gt;

&lt;p&gt;
Also, as previously mentioned, check for other syntax mistakes
&lt;i&gt;&lt;b&gt;before&lt;/b&gt;&lt;/i&gt; that line...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interpret compiler error message?</title><link>https://community.arm.com/thread/120057?ContentTypeID=1</link><pubDate>Wed, 15 May 2013 12:57:47 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:77230d4f-8e53-475d-94df-f77af5af3a2a</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
&amp;quot;what might be the problem?&amp;quot;&lt;/p&gt;

&lt;p&gt;
Did you read the answer you got earlier? What about the part:&lt;/p&gt;

&lt;p&gt;
&amp;quot;However, such an error could quite possibly be caused by some
earlier mistake - eg, a missing semicolon - such that the only way
the compiler can make any sense of your source text is to assume that
there should have been an expression at that point...&amp;quot;&lt;/p&gt;

&lt;p&gt;
So have you looked at what source lines the compiler must have
processed before it reached the line mentioned in the error
message?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interpret compiler error message?</title><link>https://community.arm.com/thread/107114?ContentTypeID=1</link><pubDate>Wed, 15 May 2013 12:33:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bf6e1060-8501-4643-83f5-04643224f307</guid><dc:creator>Jani Jani</dc:creator><description>&lt;p&gt;&lt;p&gt;
The following is the error from the compiler:&lt;/p&gt;

&lt;p&gt;
Build target &amp;#39;Proj1_Debug&amp;#39;&lt;br /&gt;
compiling RTX_Config.c...&lt;br /&gt;
C:\Keil\ARM\RV31\INC\RTX_lib.c(185): error: #29: expected an
expression&lt;br /&gt;
Target not created&lt;/p&gt;

&lt;p&gt;
Line 185 in RTX_lib.c is as follows:&lt;/p&gt;

&lt;p&gt;
#if (__ARM__ &amp;amp;&amp;amp; __RTA_RTX_CONFIG)&lt;/p&gt;

&lt;p&gt;
what might be the problem?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to interpret compiler error message?</title><link>https://community.arm.com/thread/68289?ContentTypeID=1</link><pubDate>Wed, 15 May 2013 11:42:24 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:75626e47-2085-4e1d-8893-df4ff0efbae9</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
No - look again:&lt;/p&gt;

&lt;pre&gt;
C:\Keil\ARM\RV31\INC\&lt;b&gt;RTX_lib.c&lt;/b&gt;(185): error: #29: expected an expression
&lt;/pre&gt;

&lt;p&gt;
The error refers to file &lt;b&gt;RTX_lib.c&lt;/b&gt;, line 185.&lt;/p&gt;

&lt;p&gt;
However, such an error could quite possibly be caused by some
earlier mistake - eg, a missing semicolon - such that the only way
the compiler can make any sense of your source text is to assume that
there should have been an expression at that point...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>