<?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>How do I use a .lib file in my project?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41023/how-do-i-use-a-lib-file-in-my-project</link><description>Development Kit - nrf52 
 SDK Version - 15.0.0 
 IDE - Segger Embedded Studio 
 Computer Platform - Windows 7 - 64 Bit 
 Setup : I am trying to interface an E Paper Display with the nrf52832 chip. 
 The issue is that I have a EPD.lib file and an EPD.h</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 30 Dec 2018 06:41:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41023/how-do-i-use-a-lib-file-in-my-project" /><item><title>RE: How do I use a .lib file in my project?</title><link>https://devzone.nordicsemi.com/thread/163268?ContentTypeID=1</link><pubDate>Sun, 30 Dec 2018 06:41:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea52aa2c-0573-462a-98e4-4fe60dcf0ccb</guid><dc:creator>min_ju</dc:creator><description>&lt;p&gt;Hi Varun,&lt;/p&gt;
&lt;p&gt;I have the same problem that my EPD.lib doesn&amp;#39;t compile. Could you tell me where did you get the EPD.h and EPD.lib files?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I use a .lib file in my project?</title><link>https://devzone.nordicsemi.com/thread/159499?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 12:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7a4769b-f599-4095-88e3-40877a700b00</guid><dc:creator>Varun</dc:creator><description>&lt;p&gt;Oh, alright. Actually, I did not have the souce files to build the lib file. Thanks a lot for helping out though.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Varun&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I use a .lib file in my project?</title><link>https://devzone.nordicsemi.com/thread/159498?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 10:37:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c5317fd-69ad-4c6e-9260-550ae5d1e263</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Varun.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried to include your &lt;strong&gt;&lt;/strong&gt;library now, and it appears that you have built it with the wrong toolchain and architecture. As you can see by the error I got:&lt;/p&gt;
&lt;p&gt;(Conflicting CPU architectures)&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-143df91367104b4283011a5361c5959e/pastedimage1543314394693v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I changed the file format from &lt;strong&gt;.lib&lt;/strong&gt; to &lt;strong&gt;.a&lt;/strong&gt; by the way.&lt;/p&gt;
&lt;p&gt;You have to try and rebuild the library to match the right target processor (Cortex-M4F processor) and use the right toolchain (for example &lt;a href="https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads/7-2018-q2-update"&gt;GNU ARM Embedded Toolchain 7-2018-q2-update&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I use a .lib file in my project?</title><link>https://devzone.nordicsemi.com/thread/159497?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 09:19:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc19bcaa-5569-4796-b0f9-fa4602ba868c</guid><dc:creator>Varun</dc:creator><description>&lt;p&gt;Hi Andreas,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can place the nrf5_SDK_15.0.0 folder at the same level as my project folder. Find the screenshot below for reference.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-143df91367104b4283011a5361c5959e/Folder-Structure.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Then you can build the project.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Varun&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I use a .lib file in my project?</title><link>https://devzone.nordicsemi.com/thread/159496?ContentTypeID=1</link><pubDate>Tue, 27 Nov 2018 07:00:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d60c5ea5-5cc2-4d03-93d1-7f0aa6327de1</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Varun.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t compile this project because you have most likely edited/created it outside the nRF5_SDK_15.0.0 folder, so all the files have a incorrect path to SDK 15, see the image:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-143df91367104b4283011a5361c5959e/pastedimage1543301984475v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I use a .lib file in my project?</title><link>https://devzone.nordicsemi.com/thread/159495?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 14:30:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f326229f-4e39-4db6-a558-d6a102eb4339</guid><dc:creator>Varun</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;Yes I&amp;#39;ve included the .h file to my main.c file.&lt;/p&gt;
&lt;p&gt;For reference, you can find my project at this &lt;a href="https://drive.google.com/file/d/1Gv9D5i7wGi_auzRoh9-3mWYYBfLaa5u6/view?usp=sharing"&gt;link&lt;/a&gt;. I&amp;#39;m using&amp;nbsp;nRF5_SDK_15.0.0.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Varun&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I use a .lib file in my project?</title><link>https://devzone.nordicsemi.com/thread/159494?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 14:11:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e262bb52-0181-43f8-933e-8f92a81df1fe</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi Varun.&lt;/p&gt;
&lt;p&gt;Have you added a include to the &lt;strong&gt;.h file&lt;/strong&gt; in your &lt;strong&gt;main.c file?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>