<?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>using sprintf causes link error</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/21698/using-sprintf-causes-link-error</link><description> 
I am using the C51FPL.LIB when compiling my project for a LPC936.
I&amp;#39;ve been using it for months - works fine. 

 
I put a &amp;#39;sprintf&amp;#39; in my code and included &amp;#39;stdio.h&amp;#39;. I now get the
linker error (BL51) of &amp;#39;Error L103: External Attibute Does Not Match</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: using sprintf causes link error</title><link>https://community.arm.com/thread/75066?ContentTypeID=1</link><pubDate>Wed, 02 May 2007 18:25:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d01b103d-487a-44aa-a944-fdfeb2304f19</guid><dc:creator>Sutton Mehaffey</dc:creator><description>&lt;p&gt;&lt;p&gt;
I&amp;#39;m not using any externs with this example. All local variables.
So, the problem must be with the sprintf declaration itself, which is
in the Keil header file, &amp;quot;stdio.h&amp;quot;. Which LIBs does sprintf appear
in?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using sprintf causes link error</title><link>https://community.arm.com/thread/50700?ContentTypeID=1</link><pubDate>Wed, 02 May 2007 17:44:28 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cada3117-02a5-4880-9ccd-84cc4b71d61a</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Every &amp;quot;extern&amp;quot; &lt;i&gt;&lt;b&gt;Declaration&lt;/b&gt;&lt;/i&gt; must have exactly one
matching Public &lt;i&gt;&lt;b&gt;Definition&lt;/b&gt;&lt;/i&gt;.&lt;/p&gt;

&lt;p&gt;
The Linker is telling you that they don&amp;#39;t match - the names are
the same, but some other Attribute(s) differ(s)&lt;/p&gt;

&lt;p&gt;
&amp;quot;Attributes&amp;quot; could be size, memory model, signed-ness, etc,
etc...&lt;/p&gt;

&lt;p&gt;
Look very carefully, and Spot The Difference...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>