<?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>&amp;quot;Undefined reference to [functions]&amp;quot; errors even though I have included the relevant H files.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76334/undefined-reference-to-functions-errors-even-though-i-have-included-the-relevant-h-files</link><description>I am trying to use some BLE functions that are currently defined and declared in my package (I checked). 
 I included the H files for all of them, and I am not getting any &amp;quot;Could not find file or directory&amp;quot; errors. 
 When I click on &amp;quot;Go to declaration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Jun 2021 12:41:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76334/undefined-reference-to-functions-errors-even-though-i-have-included-the-relevant-h-files" /><item><title>RE: "Undefined reference to [functions]" errors even though I have included the relevant H files.</title><link>https://devzone.nordicsemi.com/thread/315398?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 12:41:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3968ce31-47ca-46e0-baf9-6a858c5fd27e</guid><dc:creator>rezKamal</dc:creator><description>&lt;p&gt;That should do it. I added #include lines and had not added the C files to my project, so it had no way of accessing them.&lt;/p&gt;
&lt;p&gt;Thanks so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Undefined reference to [functions]" errors even though I have included the relevant H files.</title><link>https://devzone.nordicsemi.com/thread/315396?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 12:35:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04da3b59-6c81-4673-89a7-8d1e92746c4d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Did you remember to add the c file to your project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Undefined reference to [functions]" errors even though I have included the relevant H files.</title><link>https://devzone.nordicsemi.com/thread/315388?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 12:22:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed9cb7df-5ece-4178-97e9-fdb28ce5c982</guid><dc:creator>rezKamal</dc:creator><description>&lt;p&gt;Thanks for the suggestion! I defined that macro in my sdk_config.h and will do the same for the other ones that should be set. However, the current errors persist.&lt;/p&gt;
&lt;p&gt;This may help narrow down the problem further: when I try Ctrl+O and look for nrf_ble_gatt.c, it says the solution file does not exist in the project. So it&amp;#39;s not that the module is enabled; it just doesn&amp;#39;t access the C files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: "Undefined reference to [functions]" errors even though I have included the relevant H files.</title><link>https://devzone.nordicsemi.com/thread/315385?ContentTypeID=1</link><pubDate>Tue, 15 Jun 2021 12:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5eb921f-808b-4248-9514-28c3818f60e2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;A typical reason for such issues with the nRF5 SDK if you have included the requiered files is that you have not enabled the module in sdk_config.h. For instance, for&amp;nbsp;nrf_ble_gatt_init() to be included you need to set&amp;nbsp;NRF_BLE_GATT_ENABLED to 1 in your project&amp;#39;s sdk_config.h file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>