<?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>Issue while building the project:</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94415/issue-while-building-the-project</link><description>Hello, 
 
 I was trying to run TFLM custom code on Thingy:53 device and while building I have faced these warnings. 
 
 
 1. Could you please help me to understand Why I am facing these warning? 
 2. How can I Remove solve these problems? 
 
 Regards</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Dec 2022 15:40:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94415/issue-while-building-the-project" /><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/401323?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 15:40:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef381382-f91b-4c04-9c87-3a085e389681</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Divya,&lt;/p&gt;
&lt;p&gt;Sorry for the delay, I have been out of office.&lt;/p&gt;
&lt;p&gt;Please do a pristine build and copy the entire build log, not just the error at the end, and upload it here. Make sure to copy from the beginning of the build, and copy it as text and not a screenshot.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/400674?ContentTypeID=1</link><pubDate>Wed, 14 Dec 2022 15:09:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d83a5b8-6a8a-4829-bfc8-a4416be8a569</guid><dc:creator>Divya_uni_ulm</dc:creator><description>&lt;p&gt;Hello Marte,&lt;/p&gt;
&lt;p&gt;Can you please help me to understand the above mentioned issues.&lt;/p&gt;
&lt;p&gt;Looking for your support on urgent basis!!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Divya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/400188?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2022 14:41:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a79d1ca9-5974-4d86-b82e-2cb235fd3322</guid><dc:creator>Divya_uni_ulm</dc:creator><description>&lt;p&gt;Hello Marte,&lt;/p&gt;
&lt;p&gt;So, I have tried to build the project again but it is failed again with this error:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1670777670410v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1670856083166v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you please help me to understand where is the problem and What does that error means?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Also, there were some messages like&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1670777751281v4.png" /&gt;&lt;/p&gt;
&lt;p&gt;Can you please elaborate the meaning of these messages?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Divya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/400025?ContentTypeID=1</link><pubDate>Sun, 11 Dec 2022 16:57:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fadd64ec-496b-4691-9e29-dac73757fd6c</guid><dc:creator>Divya_uni_ulm</dc:creator><description>&lt;p&gt;Hello Marte,&lt;/p&gt;
&lt;p&gt;So, I have tried to build the project again but it is failed again with this error:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1670777670410v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you please help me to understand where is the problem and What does that error means?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Also, there were some messages like&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1670777751281v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Can you please elaborate the meaning of these messages?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Divya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/399895?ContentTypeID=1</link><pubDate>Fri, 09 Dec 2022 11:08:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d202d4f3-a56e-4fb2-9615-e486d889b66e</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Divya,&lt;/p&gt;
&lt;p&gt;As I have mentioned previously, these errors are from Intellisense, and are not indications on whether the build will fail or not. Are you still getting an error when building, or only these errors from Intellisense?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/399664?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 12:51:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9ae39e1-46f2-4b02-a7a4-b0d944c48acf</guid><dc:creator>Divya_uni_ulm</dc:creator><description>&lt;p&gt;Hello Marte,&lt;/p&gt;
&lt;p&gt;Thank you for the suggestion.&lt;/p&gt;
&lt;p&gt;I have tried the same as you have mentioned above but now it is showing an error like this for micro_error_reporter&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1670503799106v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;for&amp;nbsp;micro_interpreter:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1670504570522v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and for&amp;nbsp;all_ops_resolver&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1670504605293v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Can you please look into the matter!!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Divya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/399602?ContentTypeID=1</link><pubDate>Thu, 08 Dec 2022 09:56:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f80c3dc4-0952-4ee7-a1a9-39283c30ec8a</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please try using the following paths instead&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;quot;tensorflow/lite/micro/micro_error_reporter.h&amp;quot;
#include &amp;quot;tensorflow/lite/micro/micro_interpreter.h&amp;quot;
#include &amp;quot;tensorflow/lite/schema/schema_generated.h&amp;quot;
#include &amp;quot;tensorflow/lite/micro/all_ops_resolver.h&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/399444?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 13:52:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b826deb-758b-4e15-8478-8523ef3ee760</guid><dc:creator>Divya_uni_ulm</dc:creator><description>&lt;p&gt;Hello Marte,&lt;/p&gt;
&lt;p&gt;I have tried to do some changes and then try to build the project.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1670420955496v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;The build is still not able to identify the tensorflow folder inside the include folder so the build is failing all the time.&lt;/p&gt;
&lt;p&gt;Also, I have another question is that, I have noticed that there is already a folder inside the ncs-v2.1.2:&lt;/p&gt;
&lt;p&gt;C:\Users\DIVYA\ncs-v2.1.2\v2.1.2\modules\lib\tflite-micro\tensorflow\lite\micro&lt;/p&gt;
&lt;p&gt;Because I am trying to add this path in the code:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1670421657641v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Then it is showing me an error like:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1670421534882v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;That is the same folder I want to call inside my code. SO, is there any possibility if I can call the files from this folder to my project code?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/399017?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2022 14:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bec8fe7f-31cc-4eda-85f4-4a9ef2206f90</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Divya,&lt;/p&gt;
&lt;p&gt;Have you tried building the project? Do you actually get errors with that the files cannot be found when building the project?&lt;/p&gt;
&lt;p&gt;The errors you are showing here are not from the build, but from the C/C++ Intellisense extension in VS Code. They just mean that Intellisense is not able to find the files, but Intellisense has nothing to do with the building of the project.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/398818?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 16:34:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2c02429-d378-4c6f-a6f3-bc29156c200f</guid><dc:creator>Divya_uni_ulm</dc:creator><description>&lt;p&gt;Hello Marte,&lt;/p&gt;
&lt;p&gt;Ok, so there are two things.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, The above error I have mentioned are from from &lt;strong&gt;&lt;u&gt;main_function.cc&lt;/u&gt;&lt;/strong&gt; file not from the main.c file.&lt;/p&gt;
&lt;p&gt;Somehow it is not showing the error when I include the whole path for few files:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669998798157v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;but it is still showing the error for the file saved inside the tensorflow folder:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669998806323v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Other point, When I checked the &lt;strong&gt;&lt;u&gt;main.c&lt;/u&gt;&lt;/strong&gt; file then I have noticed it also has the main_function.h inside it. But even after adding the directory for the header file the problem is still the same for main.c file as well.&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669998836146v4.png" /&gt;&lt;/p&gt;
&lt;p&gt;So, again when I am keeping the whole path and then it is not showing the error:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669998870671v8.png" /&gt;&lt;/p&gt;
&lt;p&gt;I have kept all the required header files inside the folder name extra_files.&lt;/p&gt;
&lt;p&gt;I do not know what is wrong with the calling of header files.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It seems like that CMakelist file is not adding any folder.&lt;/p&gt;
&lt;p&gt;because even if I made a blank folder and then tried including that inside the directory I can not see that blcnk folder too. So i guess it is something wrong with CMakelit but again I do not understand what it is.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Divya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/398804?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 15:20:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58586e70-869d-4a0a-af07-7eec51a234ae</guid><dc:creator>Divya_uni_ulm</dc:creator><description>&lt;p&gt;Okay, I have followed the instruction and updated the CMakelist like this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669994406255v5.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;but&amp;nbsp;the problem is still the same:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669992781396v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Where am I doing the mistake?&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;
&lt;p&gt;Divya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/398795?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 14:17:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98671306-23dc-48de-8ac8-87c93ce5b7ab</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Divya,&lt;/p&gt;
&lt;p&gt;You need to add the actual path to the source files and to the directory where the header file is. Additionally, you should not add the header files to target_sources, only the source files. For the header files you should add the directory they are in to zephyr_include_directories.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;target_sources(app PRIVATE
    src/main.c
    src/tensorflow/lite/micro/micro_error_reporter.cc
    src/tensorflow/lite/micro/micro_interpreter.cc
    src/tensorflow/lite/schema/schema_generated.cc
)

zephyr_library_include_directories(
    src/tensorflow/lite/micro
    src/tensorflow/lite/schema
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here I have just guessed the file names and paths from your pictures to give you an example. You must use the actual file names and paths of your files.&lt;/p&gt;
&lt;p&gt;With this you only need the filename in the #include in your main file, and not the whole path:&lt;/p&gt;
&lt;p&gt;#include &amp;quot;micro_error_reporter.h&amp;quot;&lt;/p&gt;
&lt;p&gt;#include &amp;quot;micro_interpreter.h&amp;quot;&lt;/p&gt;
&lt;p&gt;etc.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/398760?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 12:45:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:075a5d25-e93d-4582-8607-c4d9ade52542</guid><dc:creator>Divya_uni_ulm</dc:creator><description>&lt;p&gt;Hello Marte,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I guess I might know the problem now but still I am confuse with adding the a folder inside src folder.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I followed the steps as mentioned in this link here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93149/how-to-add-header-file-h-and-lib-file-lib-into-custom-project/392032"&gt;devzone.nordicsemi.com/.../392032&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but the problem is still not resolved. I can not access the folder that I have added inside the src.&lt;/p&gt;
&lt;p&gt;Do you think writing the CMakelist like this is fine?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669985090056v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Divya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/398716?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 09:47:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47458f0c-d94f-4445-bfda-9312a1565837</guid><dc:creator>Divya_uni_ulm</dc:creator><description>&lt;p&gt;Hello Marte,&lt;/p&gt;
&lt;p&gt;I have followed the same solution as you have mentioned above, I will explore more about the matter example. Thank you for sharing.&lt;/p&gt;
&lt;p&gt;Now after adding C++ header file along with other header files I am facing some issues. it seems like I am not able to add libraries from other folder.&lt;/p&gt;
&lt;p&gt;So, I have cloned a repository inside the src directory in a separate folder named tensorflow inside &amp;quot;src&amp;quot; and it is showing me the error like:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669974388984v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="details"&gt;&lt;span class="code"&gt;As you mentioned earlier I can add all the extra file in the CMakelist.txt. So, I have added them like:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669974324793v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="details"&gt;can you please help me why I am not able to access the header file inside the tensorflow folder? I have checked and verified that these files are at the mentioned location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="details"&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="details"&gt;Divya&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/398705?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 09:07:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dcac0a7-6c2a-43d1-b169-b45c97ec1a5c</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Divya,&lt;/p&gt;
&lt;p&gt;Are you trying to include the C++ file directly or through a header file? You cannot include source files, so you must include the header file in main.c.&lt;/p&gt;
&lt;p&gt;Also, you cannot use C++ code in C files. If you put a C function (from your C++ file) in an extern &amp;quot;C&amp;quot; block in your header file, then you can use it in your C file, but you cannot use C++ classes and many other C++ features in a C file. If you search online you will be able to find a lot of information about this, and about how to use extern &amp;quot;C&amp;quot;. If you want to use C++ features then you should have your main file as a C++ file instead of C. This is for example done for Matter samples in nRF Connect SDK, so you can look there for examples (nrf/samples/matter).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/398589?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 14:56:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1984028b-d467-4f18-b823-4ab3227d0e5e</guid><dc:creator>Divya_uni_ulm</dc:creator><description>&lt;p&gt;Thanks for the quick reply.&lt;/p&gt;
&lt;p&gt;Actually I want to add a.cc file in the src folder and then want to call inside the main.c file.&lt;/p&gt;
&lt;p&gt;But it is showing an error that : No Sorce given to the target: app cmake in line 418. So, what should I do to include a .cc file inside main.c file.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1669906500650v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;Does calling a C++ file inside a C is really support by Thingy?&lt;/p&gt;
&lt;p&gt;If not then is there any possibilty to build and Flash Thingy with a C++ file like main.cc in place of main.c?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Divya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/398580?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 14:36:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81bac828-c2ca-491b-b0ee-c2d541f7769b</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Divya,&lt;/p&gt;
&lt;p&gt;You need to add the files to the project. For the header files you add the directory the files are in with zephyr_library_include_directories, and for the source files you add the files themselves to target_sources, for example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;target_sources(app PRIVATE
    src/main.c
    src/&amp;lt;custom_file&amp;gt;
)

zephyr_library_include_directories(src)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Where you change &amp;lt;custom_file&amp;gt; to the filename of your source file.&lt;/p&gt;
&lt;p&gt;After you do a pristine build after adding this you should see the files in the nRF Connect extension in VS Code.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/398559?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 13:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c82b6355-1ed0-487e-b956-d9d9a1e51c7b</guid><dc:creator>Divya_uni_ulm</dc:creator><description>&lt;p&gt;Thanks Marte for your message.&lt;/p&gt;
&lt;p&gt;I need to ask that I have added some header files and source file in section of &amp;quot;src&amp;quot; my custom project but when I opened the project in VSC I can not find those files.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can only see those files in Explorer section. Do you know how can I see my all files?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Divya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/398385?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 15:24:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a334c51-7d22-44be-a5b1-ea21c03e45fc</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Divya,&lt;/p&gt;
&lt;p&gt;As you can see in the warning text, you are trying to set configurations related to logging (CONFIG_LOG_DEFAULT_LEVEL and CONFIG_LOG_MODE_MINIMAL) while logging is disabled:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Check these unsatisfied dependencies: (LOG || LOG) (=n)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If you go to the links referenced in the warnings you can also see that the configurations depend on CONFIG_LOG being set, see for example &lt;a href="https://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOG_DEFAULT_LEVEL"&gt;CONFIG_LOG_DEFAULT_LEVEL.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you want to use logging you must set CONFIG_LOG=y in prj.conf. If you do not want to use logging then you can remove these two configurations instead.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/398379?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 14:48:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3857df8c-aa90-4f8f-afda-0e2a380b39fa</guid><dc:creator>Divya_uni_ulm</dc:creator><description>&lt;p&gt;Hello Marte,&lt;/p&gt;
&lt;p&gt;Thank you so much for the response. I hope you have noticed that I have updated the question with more warnings while building the code. Could you please help me to solve those issues too!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue while building the project:</title><link>https://devzone.nordicsemi.com/thread/398378?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 14:46:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c715dc4e-3da5-43a1-b839-3a3aa9847292</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi Divya,&lt;/p&gt;
&lt;p&gt;1. This is telling you that asserts are enabled. If you look through the code files in nRF Connect SDK you will find __ASSERT is used several places. This is used to give a runtime error based on a check. You can read more about this here: &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.2/zephyr/kernel/services/other/fatal.html#software-errors-triggered-in-source-code"&gt;Software Errors Triggered in Source Code&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;2. You can disable asserts by setting the following in prj.conf: CONFIG_ASSERT=n&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>