<?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>problem with macro</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/39850/problem-with-macro</link><description> 
the following type of macro defining causing error , what should i
do? plz help. 

 
#define LCD_DATA P2 

 
error: &amp;#39;LCD_DATA&amp;#39;: undefined identifier 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: problem with macro</title><link>https://community.arm.com/thread/67647?ContentTypeID=1</link><pubDate>Fri, 10 Aug 2012 11:52:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:757d2e39-e61e-4b80-bfc4-9e361b7c91a0</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
You should probably start here: &lt;a href="http://www.keil.com/support/man/docs/uv4/uv4_examples.htm"&gt;http://www.keil.com/support/man/docs/uv4/uv4_examples.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
More examples here: &lt;a href="http://www.keil.com/download/list/c51.htm"&gt;http://www.keil.com/download/list/c51.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Books to help you here: &lt;a href="http://www.keil.com/books/"&gt;http://www.keil.com/books/&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with macro</title><link>https://community.arm.com/thread/106262?ContentTypeID=1</link><pubDate>Fri, 10 Aug 2012 02:29:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a95c0741-f8d1-4d39-98e0-339e90dd3c39</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Well, where do you have your #define?&lt;/p&gt;

&lt;p&gt;
And have you spelled your #define correctly?&lt;/p&gt;

&lt;p&gt;
Because the error message indicates that the preprocessor have not
seen and replaced LCD_DATA - but the preprocessor will not generate
an error for any unknown symbols. The compiler will, if LCD_DATA is
still visible after the preprocessing step.&lt;/p&gt;

&lt;p&gt;
So show us real code that gives the error.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with macro</title><link>https://community.arm.com/thread/80463?ContentTypeID=1</link><pubDate>Fri, 10 Aug 2012 01:34:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3e459584-69a6-4e2d-988a-6ccd85a079fe</guid><dc:creator>odvud noy</dc:creator><description>&lt;p&gt;&lt;p&gt;
what header file i should use? i only used AT89X51.H&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with macro</title><link>https://community.arm.com/thread/67645?ContentTypeID=1</link><pubDate>Thu, 09 Aug 2012 15:19:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d95ac99f-95d4-44b8-8708-9bd809fa3b36</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
You forgot to post enough code that we could see your macro
actually used in some context.&lt;/p&gt;

&lt;p&gt;
It looks like the compiler processed some code without having
first seen the #define. Maybe a missed include file?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>