<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>INLINE function no longer compile</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6531/inline-function-no-longer-compile</link><description>My PC completely bricked so I&amp;#39;m setting up Eclipse and GCC on a new Machine. Everything seems to work except I&amp;#39;m getting two odd compile errors on INLINE functions. The compile errors are: 
 Symbol &amp;#39;app_button_evt_schedule&amp;#39; could not be resolved - Semantic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Oct 2015 16:14:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6531/inline-function-no-longer-compile" /><item><title>RE: INLINE function no longer compile</title><link>https://devzone.nordicsemi.com/thread/22818?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 16:14:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cdc79c1-84df-4388-be3f-cc8ffcfdb81a</guid><dc:creator>Luis</dc:creator><description>&lt;p&gt;I faced this problem today.
I discovered that once you activate compiler optimization, inline functions (like the one in PWM library) compile fine using Eclipse and the tools/tutorial provided by Nordic.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;In order to activate compiler optimization, on your makefile, CFLAGS, put or change to any one of these:&lt;/strong&gt;
-O
&lt;strong&gt;-Og&lt;/strong&gt;
-O1
-O2
-O3&lt;/p&gt;
&lt;p&gt;Putting -O0 or nothing does not compile inline functions. Higher number means higher optimization. For example in my case I use -Og because if I use higher it breaks something I still have to fix, but that is another matter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INLINE function no longer compile</title><link>https://devzone.nordicsemi.com/thread/22816?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2015 11:15:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:237bfb09-a454-46f8-9312-679740b37ee6</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Have you check for compile in C99 options ? If it&amp;#39;s an Eclipse project,  default settings is not C99.  You&amp;#39;ll to set it to compile with inline supports.  Try either gcc c99 or iso c99.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INLINE function no longer compile</title><link>https://devzone.nordicsemi.com/thread/22817?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2015 09:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71cf1c58-0650-4745-9f3b-a292d184bf6e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Agree with RK that your toolchain is likely not configured correctly in Eclipse so that the inline declarations are not recognized. nAN-29 was not up to date thus removed from the web, but I made a new tutorial &lt;a href="https://devzone.nordicsemi.com/tutorials/7/development-with-gcc-and-eclipse/"&gt;here&lt;/a&gt; similiar to the appnote. The main difference is that this tutorial uses the &lt;a href="http://gnuarmeclipse.livius.net/blog/"&gt;GNU ARM Eclipse plug-in&lt;/a&gt; which in may experience gives better debug intergration in Eclipse, and also include the built in compiler settings for the GNU ARM compiler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INLINE function no longer compile</title><link>https://devzone.nordicsemi.com/thread/22815?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2015 04:24:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26ea7681-24de-4eb7-b625-6fced1b4b308</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;Still no luck here.  I&amp;#39;m gonna go thru the Support Cases to try and resolve this.  I&amp;#39;ve setup this environment  a few times before without issue using the nAN-29 as a guide to setup Kepler.  At a loss&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INLINE function no longer compile</title><link>https://devzone.nordicsemi.com/thread/22814?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2015 07:22:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e687ee46-639b-44d0-a484-334bcc18e73c</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;NAN-29?? That was deprecated and removed ages back and the comment at the time was &amp;#39;it doesn&amp;#39;t work with recent eclipse&amp;#39;.&lt;/p&gt;
&lt;p&gt;I suggest either rolling your own, or following Ngugen Hoan Hoang&amp;#39;s blog or installing Livio&amp;#39;s arm gcc tools using his instructions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INLINE function no longer compile</title><link>https://devzone.nordicsemi.com/thread/22813?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2015 06:19:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0a295ab-f91f-4b5d-ad8c-b4fc7ddc553f</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;I uninstalled all my tools and eclipse and tried again from scratch but I still get to the same point.   In fact now I have a few more  - Program &amp;quot;gcc&amp;quot; not found in PATH&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve set this up before and never had these issues.  I still can&amp;#39;t seem to get the Tool Chain tab to appear in C/C++ Build / Settings.    Nor does  Cross ARM GCC appear even after installing all the tool chains through eclipse, and follow nAN-29.   I&amp;#39;m worried that the Cross ARM GCC in no longer in these tools online!   Hope someone can help out with.  Very frustrating.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INLINE function no longer compile</title><link>https://devzone.nordicsemi.com/thread/22812?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2015 05:53:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6eb8263-9856-4784-b50a-86f3c59ca0ba</guid><dc:creator>Locky</dc:creator><description>&lt;p&gt;Thanks,  I actually came across that stack overflow post today.  I&amp;#39;ve tried re-downloading and re-configuring Eclipse as indicated in that post.  Still can&amp;#39;t seem to shake these errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: INLINE function no longer compile</title><link>https://devzone.nordicsemi.com/thread/22811?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2015 05:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9425279-7eef-447e-9548-b54ad5065adb</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;&lt;a href="http://stackoverflow.com/questions/20051550/eclipse-cdt-error-symbol-xxx-could-not-be-resolved"&gt;stackoverflow.com/.../eclipse-cdt-error-symbol-xxx-could-not-be-resolved&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;looks like you don&amp;#39;t have the toolchain set up properly as that was the final resolution to that problem which is exactly the same as yours.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>