<?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>Compiling Error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8168/compiling-error</link><description>Hello,
I have combined two files spi_master and ble_app_uart into one file. Once trying to compile main.c compiles with no error but bsp.c compiles with 3 errors although I have added the master.h library to it. It seems there is a problem with the linker</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Jul 2015 08:35:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8168/compiling-error" /><item><title>RE: Compiling Error</title><link>https://devzone.nordicsemi.com/thread/29355?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2015 08:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a8442dd-8f43-42bc-8673-97b5567a0bac</guid><dc:creator>Torsten Robitzki</dc:creator><description>&lt;p&gt;What you are seeing is not a compiler error, but a linker error. The linker complains about a usage of the function spi_master_evt_handler_reg() in main.c but the linker can find that function in any of object and library files given.&lt;/p&gt;
&lt;p&gt;You should check that you’ve defined (aka implemented) spi_master_evt_handler_reg() somewhere and that this file is compiled and linked into the final executable. Maybe your IDE allows you to see, how the linker is invoked. Sometime the order in which files are given to the linker matters, but this depends on the tools you are using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>