<?xml-stylesheet type="text/xsl" href="https://community.element14.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/"><channel><title>C++ Tutorial - Hello Raspberry Pi</title><link>/technologies/code_exchange/b/blog/posts/c-tutorial---hello-raspberry-pi</link><description>BackgroundIn this tutorial series, we are going to learn modern c++ using the raspberry pi. So, what do I mean when I say modern? In August of 2011, a new version of the c++ standard was released that included some exciting new features.&amp;amp;...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: C++ Tutorial - Hello Raspberry Pi</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/c-tutorial---hello-raspberry-pi</link><pubDate>Tue, 20 Oct 2015 15:07:56 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:84345581-2197-44de-8652-97ce83a30889</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Thanks for this nice tutorial. It is admirable that somebody spents so much time to help others. I&amp;#39;m a total newbie, and it&amp;#39;s my first contact with c++.&lt;/p&gt;&lt;p&gt;So my first question to chapter 1 is : what is the meaning of the &amp;quot;int&amp;quot; in front of the function main? Does it refer to the error code as integer? So is it always used to define a return code for a function?&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16071&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ Tutorial - Hello Raspberry Pi</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/c-tutorial---hello-raspberry-pi</link><pubDate>Wed, 22 Apr 2015 23:17:45 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:84345581-2197-44de-8652-97ce83a30889</guid><dc:creator>workless</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Thanks Shaun and others.&amp;nbsp; I found the bug in my code and I am now happily compiling C code on my raspberry pi.&amp;nbsp; Great advice!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16071&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ Tutorial - Hello Raspberry Pi</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/c-tutorial---hello-raspberry-pi</link><pubDate>Wed, 22 Apr 2015 10:21:35 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:84345581-2197-44de-8652-97ce83a30889</guid><dc:creator>Anonymous-342052</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;This is a REALLY COOL tutorial &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-84345581-2197-44de-8652-97ce83a30889/8306.contentimage_5F00_1.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16071&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ Tutorial - Hello Raspberry Pi</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/c-tutorial---hello-raspberry-pi</link><pubDate>Mon, 20 Apr 2015 17:35:30 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:84345581-2197-44de-8652-97ce83a30889</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Chip,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You were rude. Provide your feedback in a polite manner, or keep it to yourself.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16071&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ Tutorial - Hello Raspberry Pi</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/c-tutorial---hello-raspberry-pi</link><pubDate>Mon, 20 Apr 2015 17:08:44 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:84345581-2197-44de-8652-97ce83a30889</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Shaun wrote and has stood by this tutorial for two years, and is responding to you at no cost, and has been polite throughout.&lt;/p&gt;&lt;p&gt;You&amp;#39;ve come to it now, and speak of being frustrated from the many experiences _you_ have had talking to programmers as you say.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You talk about programmers having bad communication skills, yet you were the one that was incapable of conveying your findings without being rude. It&amp;#39;s not an opinion, it&amp;#39;s a fact:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p&gt;Chip Reuben wrote:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Once again you are incomplete, and in this case just plain wrong. In order to get BOTH OUTPUT AND ERROR to write to the file, you have to use:&lt;/p&gt;
&lt;/blockquote&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16071&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ Tutorial - Hello Raspberry Pi</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/c-tutorial---hello-raspberry-pi</link><pubDate>Mon, 20 Apr 2015 16:07:34 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:84345581-2197-44de-8652-97ce83a30889</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi Chip,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;Firstly, Linux shell specifics can be obtained from all over the Internet, it&amp;#39;s not a big deal.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Shaun&amp;#39;s tutorial covers some C/C++ essentials really well - there may be some typo&amp;#39;s but they are easily resolved in the discussion comments, which Shaun is doing, and so are you, _but_ :&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p&gt;Chip Reuben wrote:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Once again you are incomplete, and in this case just plain wrong. In order to get BOTH OUTPUT AND ERROR to write to the file, you have to use: &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It sounds from your rude response that you are frustrated with the tutorial. If that is the case, as a suggestion, please keep it civil or to yourself, because no-one wants to hear it. Shaun has spent a lot of effort preparing the tutorial, as a former C++ developer I can confirm that it is mostly error-free (more error-free than some textbooks) and politeness costs nothing from you.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16071&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ Tutorial - Hello Raspberry Pi</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/c-tutorial---hello-raspberry-pi</link><pubDate>Mon, 20 Apr 2015 14:25:31 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:84345581-2197-44de-8652-97ce83a30889</guid><dc:creator>oneleggedredcow</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I think I fixed the problem with copying and pasting the compile line.&amp;nbsp; It looks like the second &amp;quot;-&amp;quot; is a weird character.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If the errors are overflowing your screen, try writing the &lt;a class="jive-link-external-small" href="http://sc.tamu.edu/help/general/unix/redirection.html" rel="nofollow ugc noopener" target="_blank"&gt;output to a file&lt;/a&gt;.&amp;nbsp; To redirect the standard output (stdout), just add a &amp;quot;&amp;gt; file&amp;quot; to the end of your command.&amp;nbsp; However, compile errors go through the error output (stderr).&amp;nbsp; In that case you can redirect the output to a file with a &amp;quot;2&amp;gt; file&amp;quot;.&amp;nbsp; It is also pretty common to want to capture both of them.&amp;nbsp; To do this add a &amp;quot;&amp;gt;&amp;amp; file&amp;quot;.&amp;nbsp; This will redirect the error output (stderr) into the same stream as the normal output (stdout).&amp;nbsp; So, in this case:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;g++ -std=c++0x 01_HelloRPi.cpp -o01_HelloRPi &amp;gt;&amp;amp; errors.txt&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now errors.txt will contain all of the output from the compilation (from stdout and stderr).&amp;nbsp; Just open up that file and then you can see what is going on.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16071&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ Tutorial - Hello Raspberry Pi</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/c-tutorial---hello-raspberry-pi</link><pubDate>Sun, 19 Apr 2015 23:38:38 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:84345581-2197-44de-8652-97ce83a30889</guid><dc:creator>workless</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I realize this post is 2 years old but trying to compile the basic &amp;#39;hello_world.cpp&amp;#39; code on my new Raspberry Pi with Rasbian and having all kinds of trouble.&amp;nbsp; (I&amp;#39;m also new to Linux so totally lost!).&amp;nbsp; I get a long stream of errors when I try to compile the code with g++ and gcc.&amp;nbsp; I&amp;#39;ve checked both are up to date (I get &amp;quot;0 upgraded, 0 newly installed, ...&amp;quot; for both).&amp;nbsp; The errors are a long series with a lot of them saying things like &amp;quot;... was not declared in this scope&amp;quot; and &amp;quot;... has not been declared&amp;quot;.&amp;nbsp; If someone can explain how to pause the compiler output after each screen full or something.&amp;nbsp; Thanks!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16071&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ Tutorial - Hello Raspberry Pi</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/c-tutorial---hello-raspberry-pi</link><pubDate>Wed, 08 Apr 2015 01:16:34 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:84345581-2197-44de-8652-97ce83a30889</guid><dc:creator>oneleggedredcow</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;If you are referring to the -o01_HelloRPi part of the command, the space between the -o and 01_HelloRPi is optional.&amp;nbsp; It will work both ways.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16071&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: C++ Tutorial - Hello Raspberry Pi</title><link>https://community.element14.com/technologies/code_exchange/b/blog/posts/c-tutorial---hello-raspberry-pi</link><pubDate>Tue, 25 Nov 2014 15:37:06 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:84345581-2197-44de-8652-97ce83a30889</guid><dc:creator>Former Member</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;I wan not so much familiar with Raspberry pi language before reading this post. It seems a like very interesting language to work with. I always love to explore new programming language to play with them. &lt;span&gt;[View:/resized-image/__size/16x16/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-84345581-2197-44de-8652-97ce83a30889/contentimage_5F00_2516.png:16:16]&lt;/span&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=16071&amp;AppID=74&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>