<?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>converting Keil MDK-lite to OSX GNU problem.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9332/converting-keil-mdk-lite-to-osx-gnu-problem</link><description>because license is so expensive, I&amp;#39;m converting my project to OSX GNU 
 I&amp;#39;m solving problems step by step.. 
 and there is error that I couldn&amp;#39;t understand. 
 Anyone can help me what&amp;#39;s wrong here? 
 Thanks. 
 /usr/local/gcc-arm-none-eabi-4_9-2015q2</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Jan 2017 19:47:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9332/converting-keil-mdk-lite-to-osx-gnu-problem" /><item><title>RE: converting Keil MDK-lite to OSX GNU problem.</title><link>https://devzone.nordicsemi.com/thread/34458?ContentTypeID=1</link><pubDate>Tue, 31 Jan 2017 19:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1d1a0ef-b0c1-4b08-ad62-59233928bd78</guid><dc:creator>Johannes Lorenz</dc:creator><description>&lt;p&gt;Hi,
to solve undefined &lt;em&gt;reference to `sqrt&lt;/em&gt;&amp;#39; your need to link with the -lm option. The placement of this option is important (see gcc reference) and should be just before the -o option.
As an example, see this modified MAKEFILE section:&lt;/p&gt;
&lt;p&gt;nrf51422_xxac_s110: $(BUILD_DIRECTORIES) $(OBJECTS)
@echo Linking target: $(OUTPUT_FILENAME).out
$(NO_ECHO)$(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -lm -o $(OUTPUT_BINARY_DIRECTORY)/$(OUTPUT_FILENAME).out&lt;/p&gt;
&lt;p&gt;HTH Johannes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: converting Keil MDK-lite to OSX GNU problem.</title><link>https://devzone.nordicsemi.com/thread/34457?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2015 10:52:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ad93b90-cfe2-450d-97a0-bf7539d379e9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Looks like you are missing some libraries since you get undefined references. You can try to add &amp;#39;LDFLAGS += --specs=nano.specs -lc -lnosys -lm&amp;#39; to your makefile&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: converting Keil MDK-lite to OSX GNU problem.</title><link>https://devzone.nordicsemi.com/thread/34459?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2015 08:21:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93b0df15-f48c-42b0-8386-4fd3f81cb0ef</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;I would suggest the same as RK, to start with the Makefiles included in the SDK examples.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: converting Keil MDK-lite to OSX GNU problem.</title><link>https://devzone.nordicsemi.com/thread/34456?ContentTypeID=1</link><pubDate>Sun, 20 Sep 2015 01:55:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a8f1ac3-4439-4bd1-bb41-9749fe46a78f</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;My guess is that you have different flags for compilation and linking and have either a different architecture or a different floating point library flag between the two stages.&lt;/p&gt;
&lt;p&gt;Why don&amp;#39;t you start with the gcc examples in the SDK and use those as a base for developing your makefiles, since they work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>