<?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>librairies in makefile</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3259/librairies-in-makefile</link><description>Hi, 
 I&amp;#39;m using the makefile from ble_hrs to write my own makefile. I need to had libraries .lib and .a files.
How should I add my files in the makefile? 
 Thanks in advance.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Jul 2014 09:19:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3259/librairies-in-makefile" /><item><title>RE: librairies in makefile</title><link>https://devzone.nordicsemi.com/thread/11915?ContentTypeID=1</link><pubDate>Mon, 28 Jul 2014 09:19:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2ae3573-ad52-476c-b564-024f6a05df43</guid><dc:creator>JUAN</dc:creator><description>&lt;p&gt;I changed it for &amp;quot; LIBRARIES += PATH/library.lib. It finds the .lib file but I have a error : &amp;quot;could not read symbols : File format not recognized&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: librairies in makefile</title><link>https://devzone.nordicsemi.com/thread/11914?ContentTypeID=1</link><pubDate>Mon, 28 Jul 2014 09:13:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c295603-9c73-475d-bc79-b1a764d66879</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Have you tried using the full path and name to the lib file without the &amp;#39;-l&amp;#39; option?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: librairies in makefile</title><link>https://devzone.nordicsemi.com/thread/11913?ContentTypeID=1</link><pubDate>Mon, 28 Jul 2014 08:11:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f338aec5-3ac1-41f5-9d4d-1e843b2cb72f</guid><dc:creator>JUAN</dc:creator><description>&lt;p&gt;This seems to work for .a files. I also have a .lib library. I have tried the same method. It is not linked. I know they are different in type of library. Do I have to convert the .lib to .a? Or is there another way to link it?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: librairies in makefile</title><link>https://devzone.nordicsemi.com/thread/11912?ContentTypeID=1</link><pubDate>Mon, 28 Jul 2014 06:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d915f59-d78c-4e2f-97a3-aea05583695e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Just add &amp;quot;LIBRARIES += -llibrary&amp;quot; to your makefile. See  &lt;a href="https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html"&gt;gcc.gnu.org/.../Link-Options.html&lt;/a&gt; for more details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>