<?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>add zephyr library to external lib</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114681/add-zephyr-library-to-external-lib</link><description>I tried using the &amp;#39;externallib&amp;#39; sample with toolchain 2.7.0 and SDK 2.6.1, and it works fine. 
 
 However, if I add something like #include &amp;lt;zephyr/kernel.h&amp;gt; in &amp;#39;mylib.h&amp;#39;, the compiler throws an error. I have tried including the Zephyr library directories</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 13 Sep 2024 05:40:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114681/add-zephyr-library-to-external-lib" /><item><title>RE: add zephyr library to external lib</title><link>https://devzone.nordicsemi.com/thread/502419?ContentTypeID=1</link><pubDate>Fri, 13 Sep 2024 05:40:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e63e1051-f154-441f-92fd-b2a979cd4d4d</guid><dc:creator>babos</dc:creator><description>&lt;p&gt;Hi, Vidar.&lt;br /&gt;Not necessarily but thanks for the info.&lt;br /&gt;&lt;br /&gt;Babos&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: add zephyr library to external lib</title><link>https://devzone.nordicsemi.com/thread/502350?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2024 14:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46a8bdb3-10f3-4e6c-938d-d723e757429a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I think&amp;nbsp;would be more appropriate to&amp;nbsp;create a&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/develop/modules.html#modules-external-projects"&gt;Zephyr module&lt;/a&gt;&amp;nbsp;for your module&amp;nbsp;if you want the library to integrate Zephyr features. I also have not seen any any samples demonstrating dynamic libraries with position indepentent code. Is that also a requirement in your case?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>