<?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>Linker unable to find function definition despite .c file being in the project and .h file included</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66536/linker-unable-to-find-function-definition-despite-c-file-being-in-the-project-and-h-file-included</link><description>Hi, I encountered an issue when moving my project directory within my computer. In fact, the linker seems to be unable to find some functions definitions : Error[Li005]: no definition for &amp;quot;app_uart_init&amp;quot; [referenced from .....\main.o] Error[Li005]: no</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Oct 2020 08:15:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66536/linker-unable-to-find-function-definition-despite-c-file-being-in-the-project-and-h-file-included" /><item><title>RE: Linker unable to find function definition despite .c file being in the project and .h file included</title><link>https://devzone.nordicsemi.com/thread/273111?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 08:15:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b264fe9-2b6d-4ee8-928b-cf69802cb9bf</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Where was the other instance of the sdk_config.h header located? Can you try removing it and see if it helps? As all defines are guarded with #ifndef&amp;#39;s, it could be a problem if these symbols are defined elsewhere in your code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linker unable to find function definition despite .c file being in the project and .h file included</title><link>https://devzone.nordicsemi.com/thread/272911?ContentTypeID=1</link><pubDate>Mon, 05 Oct 2020 09:27:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7aa8e7d1-0e1e-4fc8-af8f-84d429b998b5</guid><dc:creator>CLEC</dc:creator><description>&lt;p&gt;Hello again !&lt;br /&gt;&lt;br /&gt;As you can see, sdk_config.h is well included within app_uart_fifo.c, but as you mentionned this file was different from the one included in my project.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1601889531172v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Unfortunately, including the right file has not fixed the problem. (The errors are exactly the same)&lt;br /&gt;Again, thanks for your time !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linker unable to find function definition despite .c file being in the project and .h file included</title><link>https://devzone.nordicsemi.com/thread/272496?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2020 11:23:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f3c3f51-6b26-4fe1-b3ae-eaa76fc3e8a8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I think it makes sense that the error occur at linking because the compiler can only assume that the function definitions will exist once all sources are compiled. However, I can&amp;#39;t think of anything to explain why it stops working just because you moved the project location. Sorry, but can you please double check again that the correct header is included with the app_uart_fifo.c file as shown in the screenshot below.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1067.pastedimage1601551423796v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linker unable to find function definition despite .c file being in the project and .h file included</title><link>https://devzone.nordicsemi.com/thread/272364?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 15:06:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98b85c3e-ff77-4299-8004-8230230ad1fb</guid><dc:creator>CLEC</dc:creator><description>&lt;p&gt;Bypassing the APP_UART_ENABLE generates 5 new errors :&lt;br /&gt;&lt;br /&gt;Error[Pe020]: identifier &amp;quot;APP_UART_DRIVER_INSTANCE&amp;quot; is undefined D:\....\app_uart_fifo.c 47 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;NRF_UARTE_HWFC_DISABLED&amp;quot; is undefined D:\....\app_uart_fifo.c 162 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;NRF_UARTE_HWFC_ENABLED&amp;quot; is undefined D:\....\app_uart_fifo.c 162 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;NRF_UARTE_PARITY_INCLUDED&amp;quot; is undefined D:\....\app_uart_fifo.c 164 &lt;br /&gt;Error[Pe020]: identifier &amp;quot;NRF_UARTE_PARITY_EXCLUDED&amp;quot; is undefined D:\....\app_uart_fifo.c 164 &lt;br /&gt;&lt;br /&gt;app_uart_fifo.c is included in my workspace and, for example, I found the #define APP_UART_DRIVER_INSTANCE within the sdk_config.&lt;br /&gt;The preprocessor options for the compiler contains the path for the nrf52840 sdk_config file and I don&amp;#39;t see another path that could lead to another sdk_config.&lt;br /&gt;&lt;br /&gt;What puzzles me is that the linker does not find the function definitions whereas the compiler seems ok. Could it come from a wrong compilation where the compiler does not warn us about a problem ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linker unable to find function definition despite .c file being in the project and .h file included</title><link>https://devzone.nordicsemi.com/thread/272335?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 13:27:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40642283-2d97-45f6-b662-dd4b18502253</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;That&amp;#39;s strange. Can you list the build errors you get after bypassing the APP_UART_ENABLED check? Could it possible that the wrong sdk_config.h header gets included in the build?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linker unable to find function definition despite .c file being in the project and .h file included</title><link>https://devzone.nordicsemi.com/thread/272217?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 09:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29a0ffa9-6c30-45a8-ba98-d23a440b878b</guid><dc:creator>CLEC</dc:creator><description>&lt;p&gt;Thanks for your help !&lt;br /&gt;In fact, I just made a copy of it, the one at the original location is building and working without any error.&lt;/p&gt;
&lt;p&gt;I modified Windows path length limit as you recommended, but still my project encounters the same errors.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Linker unable to find function definition despite .c file being in the project and .h file included</title><link>https://devzone.nordicsemi.com/thread/272207?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 09:02:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b812162-7c8d-4750-9663-2c35c6a799b5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Does the project build without errors if you move it back to the original location? I wonder if you may be hitting Windows&amp;#39; default path length limit of 260 characters. It&amp;#39;s apparently possible to disable this limit on Win 10 now: &lt;a href="https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/"&gt;https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>