<?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: this declaration has no storage class or type specifier</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/34716/error-this-declaration-has-no-storage-class-or-type-specifier</link><description> 
Hi to all 
I am working on encryption AES Algorithm on LPC1768. 
The problem comes when I compile the project from Keil. I got this
log: 
Any pointers or suggestion will be helpful. 

 
 *** Using Compiler &amp;#39;V5.06 update 3 (build 300)&amp;#39;, folder: &amp;#39;C:\Keil_v5</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Error: this declaration has no storage class or type specifier</title><link>https://community.arm.com/thread/120902?ContentTypeID=1</link><pubDate>Wed, 16 Nov 2016 13:48:05 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f61b025b-3b0d-4d2b-a0dd-2dcb13dca4b0</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Continued: &lt;a href="http://www.keil.com/forum/61906/"&gt;http://www.keil.com/forum/61906/&lt;/a&gt;
...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: this declaration has no storage class or type specifier</title><link>https://community.arm.com/thread/108953?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 05:36:23 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:00d56b37-8c94-4b1e-80e6-4eaa5ff44495</guid><dc:creator>edPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
The suggestion? Don&amp;#39;t copy code unless you understand it. Then you
would know how to modify the code so the compiler can find LED_OK,
LED_BLINK, ...&lt;/p&gt;

&lt;p&gt;
The warnings you see are _extremely_ basic. So basic that you
should understand them if you had spent an hour or two with an
introductionary book on the C programming language.&lt;/p&gt;

&lt;p&gt;
There are no shortcuts possible - you just have to spend _own_
time learning the C programming language. Or switch to doing
something else.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: this declaration has no storage class or type specifier</title><link>https://community.arm.com/thread/83411?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 04:03:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:98dd54d8-4068-4b0b-929b-aaa0f23e9fb4</guid><dc:creator>Hadi Eskandari</dc:creator><description>&lt;p&gt;&lt;p&gt;
Dear Per Westermark&lt;br /&gt;
Thanks for quick reply and guidance.&lt;/p&gt;

&lt;p&gt;
I go through your suggestions. Now the error is:&lt;/p&gt;

&lt;pre&gt;
*** Using Compiler &amp;#39;V5.06 update 3 (build 300)&amp;#39;, folder: &amp;#39;C:\Keil_v5\ARM\ARMCC\Bin&amp;#39;
compiling main.c...
main.c(142): warning:  #223-D: function &amp;quot;toggleLed&amp;quot; declared implicitly
                if( status == OK) toggleLed(LED_OK);
main.c(142): error:  #20: identifier &amp;quot;LED_OK&amp;quot; is undefined
                if( status == OK) toggleLed(LED_OK);
main.c(191): warning:  #223-D: function &amp;quot;SystemCoreClockUpdate&amp;quot; declared implicitly
        SystemCoreClockUpdate();
main.c(194): warning:  #223-D: function &amp;quot;SysTick_Config&amp;quot; declared implicitly
        SysTick_Config(SystemCoreClock/1000);
main.c(194): error:  #20: identifier &amp;quot;SystemCoreClock&amp;quot; is undefined
        SysTick_Config(SystemCoreClock/1000);
main.c(202): warning:  #223-D: function &amp;quot;setupLeds&amp;quot; declared implicitly
        setupLeds();
main.c(241): warning:  #223-D: function &amp;quot;setVisualError&amp;quot; declared implicitly
                        setVisualError();
main.c(266): warning:  #223-D: function &amp;quot;toggleLed&amp;quot; declared implicitly
                toggleLed(LED_BLINK);
main.c(266): error:  #20: identifier &amp;quot;LED_BLINK&amp;quot; is undefined
                toggleLed(LED_BLINK);
main.c: 6 warnings, 3 errors
&amp;quot;main.c&amp;quot; - 3 Error(s), 6 Warning(s).
&lt;/pre&gt;

&lt;p&gt;
&lt;br /&gt;
Any pointers or suggestion will be helpful.&lt;/p&gt;

&lt;p&gt;
Thanks in advance&lt;br /&gt;
Baba&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error: this declaration has no storage class or type specifier</title><link>https://community.arm.com/thread/69706?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 03:51:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c0694866-bf2a-442b-9e01-ec5aee385987</guid><dc:creator>edPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
So, the compiler did emit these descriptive error messages. Did
you open the files and look? The intention with the messages is that
a normal developer should be able to understand what is wrong and fix
the problems.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>