<?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>NCS：How to add and use the header file in the library</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100357/ncs-how-to-add-and-use-the-header-file-in-the-library</link><description>If I want to use the header file in the library,what should I do next? 
 For example, I want to add this to main.c. 
 
 
 #include &amp;lt;app_event_manager.h&amp;gt;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Jun 2023 09:12:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100357/ncs-how-to-add-and-use-the-header-file-in-the-library" /><item><title>RE: NCS：How to add and use the header file in the library</title><link>https://devzone.nordicsemi.com/thread/428945?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2023 09:12:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae7e083a-3725-4a9d-b2c8-eb72ef45ef0b</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Glad to hear it&amp;nbsp;&lt;span&gt;Kenlove. I will close this case&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have a wonderfull weekend&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Runar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS：How to add and use the header file in the library</title><link>https://devzone.nordicsemi.com/thread/428943?ContentTypeID=1</link><pubDate>Fri, 02 Jun 2023 09:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c468794b-bc75-48c7-a6bb-9a5f73e27e4a</guid><dc:creator>kenlove</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;Thank you very much!&amp;nbsp;&lt;/span&gt;&lt;span class="select-trans" data-tab="usual" data-pos="trans_yiwen"&gt;The&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="select-trans" data-tab="usual" data-pos="trans_yiwen"&gt;problem&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="select-trans" data-tab="usual" data-pos="trans_yiwen"&gt;solved.&lt;br /&gt;&lt;/span&gt;&lt;span class="select-trans" data-tab="usual" data-pos="trans_yiwen"&gt;&lt;br /&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Kenlove&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS：How to add and use the header file in the library</title><link>https://devzone.nordicsemi.com/thread/428692?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 11:02:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e709165c-053a-4f86-a5ad-6b1f9600ef6f</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to include&amp;nbsp;the app_event_manger you will need to enable it in Kconfig with the following line in prj.conf&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_APP_EVENT_MANAGER=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And then you add it in your main.c with an normal include as you have above(just uncomment it)&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>