<?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>New file added to project is not being build.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48454/new-file-added-to-project-is-not-being-build</link><description>Hi! I&amp;#39;m working with nRF52 development kit and SEGGER Embedded Studio. I was trying to modify the example given as ble_app_hids_mouse and take all the functions present in main.c to define them in another file .c along with its .h file. The thing is that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Jun 2019 13:00:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48454/new-file-added-to-project-is-not-being-build" /><item><title>RE: New file added to project is not being build.</title><link>https://devzone.nordicsemi.com/thread/192389?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 13:00:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fb78cef-79c6-4e9c-8698-a52f6bfc0cf4</guid><dc:creator>awneil</dc:creator><description>[quote userid="79988" url="~/f/nordic-q-a/48454/new-file-added-to-project-is-not-being-build"]I found a Makefile inside the ble_app_hids_mouse/pca10040/s132/armgcc so I modified it (just in case SES uses it) [/quote]
&lt;p&gt;It doesn&amp;#39;t&lt;/p&gt;
[quote userid="79988" url="~/f/nordic-q-a/48454/new-file-added-to-project-is-not-being-build"]the functions called by the main and included in the .c file seem to be not defined.[/quote]
&lt;p&gt;What, exactly, do you mean by that?&lt;/p&gt;
&lt;p&gt;Are you getting build errors? If so, post them - copy &amp;amp; paste the text, not a screenshot. Post as for source code, but leave the &amp;#39;language&amp;#39; as &amp;#39;text&amp;#39;&lt;/p&gt;
[quote userid="79988" url="~/f/nordic-q-a/48454/new-file-added-to-project-is-not-being-build"]the main is not able to find the functions[/quote]
&lt;p&gt;Again, what do you mean by that?&lt;/p&gt;
[quote userid="79988" url="~/f/nordic-q-a/48454/new-file-added-to-project-is-not-being-build"]Any idea on how to make this works?[/quote]
&lt;p&gt;This is standard &amp;#39;C&amp;#39; stuff - nothing specifically to do with Nordic:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://c-faq.com/decl/decldef.html"&gt;http://c-faq.com/decl/decldef.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New file added to project is not being build.</title><link>https://devzone.nordicsemi.com/thread/192385?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 12:56:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c9d3dcb-efb5-4baf-84b5-854098bbbc6d</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Note that there is no need to add &lt;strong&gt;.h&lt;/strong&gt; files to the project - just the &lt;strong&gt;.c&lt;/strong&gt; files&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New file added to project is not being build.</title><link>https://devzone.nordicsemi.com/thread/192349?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 12:03:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b2cb32e-e71e-4ec6-b7b5-a36bace8dc02</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can create or add the .h/.c files in the same folder as the main.c file in Segger Embedded Studio (SES)&amp;nbsp; as&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f7d49ac8985145b883cee5b0696a5290/Untitled.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Amanda&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New file added to project is not being build.</title><link>https://devzone.nordicsemi.com/thread/192211?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 06:55:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66f4d98a-65ed-4569-b75e-3ee497f81337</guid><dc:creator>dolrairom</dc:creator><description>&lt;p&gt;Hi! Thanks for your reply. I updated my question with the things you asked and added the code in main.c to express myself better. Take a look when you can.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New file added to project is not being build.</title><link>https://devzone.nordicsemi.com/thread/192145?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 15:41:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef7e871d-48be-41d0-8c89-12b3af3f60ee</guid><dc:creator>awneil</dc:creator><description>[quote userid="79988" url="~/f/nordic-q-a/48454/new-file-added-to-project-is-not-being-build"]working with ... SEGGER[/quote]
&lt;p&gt;Do you mean Segger Embedded Studio (SES) ?&lt;/p&gt;
[quote userid="79988" url="~/f/nordic-q-a/48454/new-file-added-to-project-is-not-being-build"]the Makefile[/quote]
&lt;p&gt;What makefile?&lt;/p&gt;
&lt;p&gt;SES doesn&amp;#39;t need a makefile.&lt;/p&gt;
[quote userid="79988" url="~/f/nordic-q-a/48454/new-file-added-to-project-is-not-being-build"]the main is not able to find the functions[/quote]
&lt;p&gt;What, exactly, do you mean by that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>