<?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>getchar Linker error</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/42590/getchar-linker-error</link><description> I am new to programming microcontrollers, and I am just trying to write a simple program that echos back the characters to the screen. I first started off by trying to read from the serial port but then got this error: 
 
*** ERROR L104: MULTIPLE PUBLIC</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: getchar Linker error</title><link>https://community.arm.com/thread/97201?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2005 09:49:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0b903035-87ea-4ba4-8f87-d096d9bd5fc9</guid><dc:creator>Eric Jackowski</dc:creator><description>&lt;p&gt;Thanks everyone.&lt;br /&gt;
&lt;br /&gt;
I just had to change to using _getkey.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getchar Linker error</title><link>https://community.arm.com/thread/87236?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2005 09:46:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8b185d6e-6cd3-4e8c-9a85-ec8391360406</guid><dc:creator>Keil Software Support Intl.</dc:creator><description>&lt;p&gt;You need to use the INTERWORK directive. See:&lt;br /&gt;
&lt;a href="http://www.keil.com/support/docs/2929.htm"&gt;http://www.keil.com/support/docs/2929.htm&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Reinhard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: getchar Linker error</title><link>https://community.arm.com/thread/44104?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2005 03:52:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f9eef1b6-f7da-4c8a-99db-59480e58aaaf</guid><dc:creator>John Donaldson</dc:creator><description>&lt;p&gt;Things may be different for ARM, but in C51 you need to replace the function _getkey() rather than getchar() to customise the standard input functions.&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;m not quite certain what you&amp;#39;re trying to achieve with your scanf() call, but if you are trying to read in a single byte you need to use the %c format specifier. It would seem simpler to call getchar() to do this, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>