<?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>Error 231  with  compiler  version 6.14</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/14377/error-231-with-compiler-version-6-14</link><description> I get the error 231 (&amp;quot;redefinition&amp;quot; of mib_type ) with the compiler version 6.14 when I&amp;#39;try to compile the flollowing code: 
 
---Header File-------- 
#define u unsigned 
 
typedef struct mib_data_st 
{ 
 u char x; 
 u char y 
 
}mib_data_st; 
 
extern</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Error 231  with  compiler  version 6.14</title><link>https://community.arm.com/thread/37578?ContentTypeID=1</link><pubDate>Tue, 12 Jun 2001 09:40:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a97d451c-eb35-4575-be5d-f1a14c83d9e3</guid><dc:creator>Andrew Neil</dc:creator><description>&lt;p&gt;I&amp;#39;m surprised that v6.10 let you get away with it:&lt;br /&gt;
&lt;br /&gt;
---Header File--------&lt;br /&gt;
&lt;pre&gt;extern code char **mib_type[&lt;b&gt;8&lt;/b&gt;];&lt;/pre&gt;
---C-File---&lt;br /&gt;
&lt;pre&gt;code char **mib_type[&lt;b&gt;8+1&lt;/b&gt;]={&lt;/pre&gt;
&lt;br /&gt;
In the header file, you have said &amp;quot;mib_type is an array of &lt;b&gt;eight&lt;/b&gt; pointers to pointers to chars;&amp;quot;&lt;br /&gt;
In the &amp;#39;C&amp;#39; file, you have said &amp;quot;mib_type is an array of &lt;b&gt;&lt;i&gt;nine&lt;/i&gt;&lt;/b&gt; pointers to pointers to chars;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The Compiler is right to complain - you need to make up your mind what size you want the array to be!  ;-)&lt;br /&gt;
&lt;br /&gt;
Note that it&amp;#39;s not a bad idea to include your extern declarations in the same file as the actual definitions - it allows the compiler to catch errors like this!&lt;br /&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error 231  with  compiler  version 6.14</title><link>https://community.arm.com/thread/37580?ContentTypeID=1</link><pubDate>Tue, 12 Jun 2001 08:48:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f4606e3b-01a7-4d50-ab00-20f95f06beca</guid><dc:creator>Jon Young</dc:creator><description>&lt;p&gt;I don&amp;#39;t know if everyone has an idea, but here is mine.&lt;br /&gt;
&lt;br /&gt;
Use&lt;br /&gt;
&lt;pre&gt;
typedef struct
{
u char x;
u char y

}mib_data_st;
&lt;/pre&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;pre&gt;
typedef struct mib_data_st_tag
{
u char x;
u char y

}mib_data_st;
&lt;/pre&gt;
&lt;br /&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>