<?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>C++ eclipse compilation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14957/c-eclipse-compilation</link><description>Hi, 
 I tried to compile my own program with eclipse and GCC with c/c++.
I followed this tutorial : TUTORIAL 
 I have some problems : 
 
 
 First : i have problem with SEGGER RTT lib compilation 
 SEGGER_RTT_Syscalls_GCC.c:63:21: warning: its scope</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Jul 2016 14:41:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14957/c-eclipse-compilation" /><item><title>RE: C++ eclipse compilation</title><link>https://devzone.nordicsemi.com/thread/57065?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2016 14:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f15aa28a-bdc8-4f9b-afd3-4bd18f936f94</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Yes, among the included files is RTT_Syscalls_GCC.c.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ eclipse compilation</title><link>https://devzone.nordicsemi.com/thread/57064?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2016 12:37:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79df8aec-a464-4c00-b01c-37da7362c732</guid><dc:creator>jean.oriano</dc:creator><description>&lt;p&gt;I tried with sample and keil, the sysCall files isnt the same, the function inside too.
I want to use it with eclipse so i use sysCallgcc file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ eclipse compilation</title><link>https://devzone.nordicsemi.com/thread/57063?ContentTypeID=1</link><pubDate>Wed, 06 Jul 2016 12:40:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb9c80ef-5679-4081-8f7e-291b6bfc758b</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;RTT files are included in the latest SDK (11.0.0), under (sdk folder)/external/segger_rtt. Some of the SDK examples uses RTT, in particular for logging (nrf_log library). If the RTT files are included in the SDK you are using then I suggest you stick to them rather than fetching a potentially different version from segger.&lt;/p&gt;
&lt;p&gt;When that is said, I do have some vague memories of getting similar errors myself. I do not remember what I did to fix it, but if you enable RTT logging for an SDK example and get that to work you should at least have some idea what a working setup looks like.&lt;/p&gt;
&lt;p&gt;Regarding C++ libraries (or rather, their size) microcontrollers in general have limited program memory and are traditionally programmed in C. This means most lightwight and μc libraries are written in C. Also C++ libraries have not been subject to the same size limitations as have C libraries. Add to this that some string manipulations are complex operations, and you will see why string libraries are so large. I am sure someone would suggest a library if you state what operations you need.&lt;/p&gt;
&lt;p&gt;Regards, Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ eclipse compilation</title><link>https://devzone.nordicsemi.com/thread/57062?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 13:59:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c3ef03a-7b29-4410-a001-1bd9c1ffccc1</guid><dc:creator>jean.oriano</dc:creator><description>&lt;p&gt;I found an other post : &lt;a href="http://www.segger2.com/index.php?page=Thread&amp;amp;postID=9845&amp;amp;highlight=conflicting+types+for+%27_write_r%27#post9845"&gt;post&lt;/a&gt; and i downloaded the latest Jlink code source. There is the same code. There are the sames errors.&lt;/p&gt;
&lt;p&gt;I dont understand why they tried to &amp;quot;overload&amp;quot; the initial function but it doesn&amp;#39;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ eclipse compilation</title><link>https://devzone.nordicsemi.com/thread/57059?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 10:55:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad003a6e-b6f0-4c19-b75f-8f1be8ee516e</guid><dc:creator>Eirik Midttun</dc:creator><description>&lt;p&gt;What string operations do you need? Could you do what you want with string.h (C library) and wrap it into C++?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ eclipse compilation</title><link>https://devzone.nordicsemi.com/thread/57061?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 10:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4077ac2a-d73a-489a-9170-594be8ce15b9</guid><dc:creator>Eirik Midttun</dc:creator><description>&lt;p&gt;Check this post at the SEGGER forum: &lt;a href="http://forum.segger.com/index.php?page=Thread&amp;amp;threadID=3225"&gt;Conflicting types in SEGGER_RTT_Syscalls_GCC.c&lt;/a&gt;. There seems to be a signedness probleme in the library. SEGGER should answer to this.&lt;/p&gt;
&lt;p&gt;For the second problem, yes, adding standard libraries can give you a huge penalty on memory usage. It is quite common to not use them and implement simpler libraries that matches the requirements for the product, that is needed features and available memory.&lt;/p&gt;
&lt;p&gt;Did you do try compiling with optimizations? Could be worth trying. But in general I think iostream is an overkill.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ eclipse compilation</title><link>https://devzone.nordicsemi.com/thread/57058?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 10:47:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5664a7ed-af10-4580-a6eb-31f982489651</guid><dc:creator>jean.oriano</dc:creator><description>&lt;p&gt;for the second problem, the lib c++ iostream is too big. i tried with the lib c++ string and it works.
But it&amp;#39;s not ok. my software .hex was 30ko size and after including this lib, it was 230ko size.&lt;/p&gt;
&lt;p&gt;is it light c++ libraries for µController ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ eclipse compilation</title><link>https://devzone.nordicsemi.com/thread/57060?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 10:10:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f910c985-e050-438e-8e76-1263621fba14</guid><dc:creator>jean.oriano</dc:creator><description>&lt;p&gt;For the first problem, i only add the following code for includind lib c :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#ifdef __cplusplus

extern &amp;quot;C&amp;quot; {  

#endif

#include &amp;quot;SEGGER_RTT.h&amp;quot;


#ifdef __cplusplus

}

#endif
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;-----&amp;gt; doesn&amp;#39;t work !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ eclipse compilation</title><link>https://devzone.nordicsemi.com/thread/57057?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 09:56:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ecd0284-3b9d-475b-ab57-f9093a3d59b2</guid><dc:creator>jean.oriano</dc:creator><description>&lt;p&gt;I didn&amp;#39;t write this. I download it from segger website.
This file is a c file. But, u can have c and c++ file in a c++ project ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ eclipse compilation</title><link>https://devzone.nordicsemi.com/thread/57056?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 09:51:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c172025f-1f7b-4808-83f9-28c145d4d78b</guid><dc:creator>Eirik Midttun</dc:creator><description>&lt;p&gt;@jean.oriano Did you write SEGGER_RTT_Syscalls_GCC.c? I don&amp;#39;t recognize it from the SEGGER RTT files. Also, it is uncertain to what extent you are using C++. Could be that SEGGER is not written with C++ in mind.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: C++ eclipse compilation</title><link>https://devzone.nordicsemi.com/thread/57055?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2016 08:54:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:652f7f93-a3db-402c-9113-639134343162</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;What exactly is the problem? Can you update your question to include the error messages?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>