<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic inline functions in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/inline-functions/m-p/559425#M15441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by AMJ on Fri Dec 02 22:11:36 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;inline function defined in the header file generates linker error. It seems like linker does not recognize __INLINE or just inline, and gives error saying "multiple definition". static __INLINE does not generate an error. Any idea what's going on?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 00:50:54 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T00:50:54Z</dc:date>
    <item>
      <title>inline functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/inline-functions/m-p/559425#M15441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by AMJ on Fri Dec 02 22:11:36 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;inline function defined in the header file generates linker error. It seems like linker does not recognize __INLINE or just inline, and gives error saying "multiple definition". static __INLINE does not generate an error. Any idea what's going on?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/inline-functions/m-p/559425#M15441</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: inline functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/inline-functions/m-p/559426#M15442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by FlySnake on Sat Dec 03 02:06:11 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Prevent multiple inclusion of the header:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;#ifndef MAIN_H_
#define MAIN_H_
/* code */
#endif /* MAIN_H_ */&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;and&amp;nbsp; "multiple definition" will go away.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. static means "visible only in this file". If you declare static function or variable in header, then the function will be visible in all files where this header included but as a copy of the declaration.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/inline-functions/m-p/559426#M15442</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: inline functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/inline-functions/m-p/559427#M15443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ToBeFrank on Sun Dec 04 22:07:44 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: FlySnake&lt;/STRONG&gt;&lt;BR /&gt;2. static means "visible only in this file". If you declare static function or variable in header, then the function will be visible in all files where this header included but as a copy of the declaration.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ignoring the variables, since we're talking inline functions copying is irrelevant and static inline is an acceptable solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 00:50:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/inline-functions/m-p/559427#M15443</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T00:50:56Z</dc:date>
    </item>
  </channel>
</rss>

