<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Install C and C++ Compilers in Ubuntu and testing your first C and C++ Program</title>
	<atom:link href="http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html</link>
	<description>Ubuntu Linux Tutorials,Howtos,Tips &#38; News &#124; Oneiric,Natty,Maverick</description>
	<lastBuildDate>Mon, 06 Feb 2012 15:40:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: madhura</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-120890</link>
		<dc:creator>madhura</dc:creator>
		<pubDate>Sun, 05 Feb 2012 17:30:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-120890</guid>
		<description>I installed c++ compiler using , sudo apt-get install build-essential

when i type this code i got a message as below, what i must do now
#include 
int main()
{
	initscr();
	move(12,30);
	printw(&quot;hello\n&quot;);
	getch();
	endwin();
	return 0;
}


madhura@madhuwa:~$ g++ -omad first.cpp -lncurses
first.cpp:1:21: error: ncurses.h: No such file or directory
first.cpp: In function ‘int main()’:
first.cpp:4: error: ‘initscr’ was not declared in this scope
first.cpp:5: error: ‘move’ was not declared in this scope
first.cpp:6: error: ‘printw’ was not declared in this scope
first.cpp:7: error: ‘getch’ was not declared in this scope
first.cpp:8: error: ‘endwin’ was not declared in this scope
madhura@madhuwa:~$</description>
		<content:encoded><![CDATA[<p>I installed c++ compiler using , sudo apt-get install build-essential</p>
<p>when i type this code i got a message as below, what i must do now<br />
#include<br />
int main()<br />
{<br />
	initscr();<br />
	move(12,30);<br />
	printw(&#8220;hello\n&#8221;);<br />
	getch();<br />
	endwin();<br />
	return 0;<br />
}</p>
<p>madhura@madhuwa:~$ g++ -omad first.cpp -lncurses<br />
first.cpp:1:21: error: ncurses.h: No such file or directory<br />
first.cpp: In function ‘int main()’:<br />
first.cpp:4: error: ‘initscr’ was not declared in this scope<br />
first.cpp:5: error: ‘move’ was not declared in this scope<br />
first.cpp:6: error: ‘printw’ was not declared in this scope<br />
first.cpp:7: error: ‘getch’ was not declared in this scope<br />
first.cpp:8: error: ‘endwin’ was not declared in this scope<br />
madhura@madhuwa:~$</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dalbir Singh</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-120702</link>
		<dc:creator>Dalbir Singh</dc:creator>
		<pubDate>Tue, 31 Jan 2012 17:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-120702</guid>
		<description>Following is the code that I type in terminal.
I have made hello.c file under /home/rana/C/ using gedit. please help


rana@rana-FS-1050:~$ cc -c hello.c
cc: error: hello.c: No such file or directory
cc: fatal error: no input files
compilation terminated.

rana@rana-FS-1050:~$ cc -c /home/rana/C/hello.c
rana@rana-FS-1050:~$ ./hello
bash: ./hello: No such file or directory</description>
		<content:encoded><![CDATA[<p>Following is the code that I type in terminal.<br />
I have made hello.c file under /home/rana/C/ using gedit. please help</p>
<p>rana@rana-FS-1050:~$ cc -c hello.c<br />
cc: error: hello.c: No such file or directory<br />
cc: fatal error: no input files<br />
compilation terminated.</p>
<p>rana@rana-FS-1050:~$ cc -c /home/rana/C/hello.c<br />
rana@rana-FS-1050:~$ ./hello<br />
bash: ./hello: No such file or directory</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jayesh betai</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-120127</link>
		<dc:creator>jayesh betai</dc:creator>
		<pubDate>Sat, 21 Jan 2012 02:15:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-120127</guid>
		<description>lot of thanks for helping in installing &quot;build-essential&quot;package now I can make run program in c and c++ from linux
thanx once again</description>
		<content:encoded><![CDATA[<p>lot of thanks for helping in installing &#8220;build-essential&#8221;package now I can make run program in c and c++ from linux<br />
thanx once again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew P.</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-120028</link>
		<dc:creator>Andrew P.</dc:creator>
		<pubDate>Thu, 19 Jan 2012 01:26:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-120028</guid>
		<description>(The comment form sorely needs a &quot;preview&quot; feature so that one will know how it will look before posting.)</description>
		<content:encoded><![CDATA[<p>(The comment form sorely needs a &#8220;preview&#8221; feature so that one will know how it will look before posting.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew P.</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-120026</link>
		<dc:creator>Andrew P.</dc:creator>
		<pubDate>Thu, 19 Jan 2012 01:20:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-120026</guid>
		<description>Here&#039;s the corrected code:

#include 

int main()
{
  std::cout &lt;&lt; &quot;Hello, world!&quot; &lt;&lt; std::endl;
  return 0;
}</description>
		<content:encoded><![CDATA[<p>Here&#8217;s the corrected code:</p>
<p>#include </p>
<p>int main()<br />
{<br />
  std::cout &lt;&lt; &quot;Hello, world!&quot; &lt;&lt; std::endl;<br />
  return 0;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew P.</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-120025</link>
		<dc:creator>Andrew P.</dc:creator>
		<pubDate>Thu, 19 Jan 2012 01:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-120025</guid>
		<description>The C++ code example shown above won&#039;t compile with g++.  To make it work, the vertical bar after the left brace in the fourth line must be deleted.

The &quot;bar&quot; may actually be a screen capture of the text cursor.  Why were screen images used in the code examples in this article, instead of actual text?</description>
		<content:encoded><![CDATA[<p>The C++ code example shown above won&#8217;t compile with g++.  To make it work, the vertical bar after the left brace in the fourth line must be deleted.</p>
<p>The &#8220;bar&#8221; may actually be a screen capture of the text cursor.  Why were screen images used in the code examples in this article, instead of actual text?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jirO</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-118535</link>
		<dc:creator>jirO</dc:creator>
		<pubDate>Wed, 28 Dec 2011 05:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-118535</guid>
		<description>try,

sudo apt-get install build-essential</description>
		<content:encoded><![CDATA[<p>try,</p>
<p>sudo apt-get install build-essential</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Ecklein</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-115853</link>
		<dc:creator>David Ecklein</dc:creator>
		<pubDate>Tue, 22 Nov 2011 16:35:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-115853</guid>
		<description>Hello-

HELP! Sometime soon, I would like to port some of my old C code projects to the Ubuntu environment, and compile them into executables there.  Is there some documentation in one piece somewhere explaining the vagaries of the available standard compiler?  Things like how to handle I/O devices other than console, floating point and other numerical precision options, interfacing to assembly language modules (and incidentally assemblers, preferably macro, that are available and compatible with the compiler).  These and 100 other questions.  Finding answers online might be possible for some things, but is tedious.  Sorry my cyber-youth friends, but nothing beats a real book!  A solid recommendation of such a book (perhaps one of the O&#039;Reilly series) without a lot of generalized hand waving would be appreciated by this old timer, though Linux newbee.</description>
		<content:encoded><![CDATA[<p>Hello-</p>
<p>HELP! Sometime soon, I would like to port some of my old C code projects to the Ubuntu environment, and compile them into executables there.  Is there some documentation in one piece somewhere explaining the vagaries of the available standard compiler?  Things like how to handle I/O devices other than console, floating point and other numerical precision options, interfacing to assembly language modules (and incidentally assemblers, preferably macro, that are available and compatible with the compiler).  These and 100 other questions.  Finding answers online might be possible for some things, but is tedious.  Sorry my cyber-youth friends, but nothing beats a real book!  A solid recommendation of such a book (perhaps one of the O&#8217;Reilly series) without a lot of generalized hand waving would be appreciated by this old timer, though Linux newbee.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sujay</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-115851</link>
		<dc:creator>sujay</dc:creator>
		<pubDate>Tue, 22 Nov 2011 16:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-115851</guid>
		<description>thank u dude working fine</description>
		<content:encoded><![CDATA[<p>thank u dude working fine</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammed</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-112612</link>
		<dc:creator>Mohammed</dc:creator>
		<pubDate>Sun, 30 Oct 2011 06:13:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-112612</guid>
		<description>That really helpful
now I can develop apps using C and C++

Thanks</description>
		<content:encoded><![CDATA[<p>That really helpful<br />
now I can develop apps using C and C++</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AH</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-111851</link>
		<dc:creator>AH</dc:creator>
		<pubDate>Mon, 24 Oct 2011 16:17:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-111851</guid>
		<description>sorry, I typed as 
./MyFirstPointer

bash: ./MyFirstPointer: No such file or directory
it&#039;s what I got!</description>
		<content:encoded><![CDATA[<p>sorry, I typed as<br />
./MyFirstPointer</p>
<p>bash: ./MyFirstPointer: No such file or directory<br />
it&#8217;s what I got!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AH</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-111850</link>
		<dc:creator>AH</dc:creator>
		<pubDate>Mon, 24 Oct 2011 16:16:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-111850</guid>
		<description>Hey, when I run the program, I typed as follow:
./test
it shows the error message &quot; bash: ./MyFirstPointer: No such file or directory&quot;
 
Help me. What I need to do? Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Hey, when I run the program, I typed as follow:<br />
./test<br />
it shows the error message &#8221; bash: ./MyFirstPointer: No such file or directory&#8221;</p>
<p>Help me. What I need to do? Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: julle</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-111016</link>
		<dc:creator>julle</dc:creator>
		<pubDate>Tue, 11 Oct 2011 16:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-111016</guid>
		<description>try this code:

#include 
void main()
{
	printf(&quot;hello world!&quot;);
	getchar();
}


is the same but you dont have to write &quot;return 0;&quot;
:)</description>
		<content:encoded><![CDATA[<p>try this code:</p>
<p>#include<br />
void main()<br />
{<br />
	printf(&#8220;hello world!&#8221;);<br />
	getchar();<br />
}</p>
<p>is the same but you dont have to write &#8220;return 0;&#8221;<br />
 <img src='http://www.ubuntugeek.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amin</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-109506</link>
		<dc:creator>Amin</dc:creator>
		<pubDate>Fri, 16 Sep 2011 11:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-109506</guid>
		<description>thanks</description>
		<content:encoded><![CDATA[<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dutch</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-109219</link>
		<dc:creator>Dutch</dc:creator>
		<pubDate>Sat, 10 Sep 2011 03:14:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-109219</guid>
		<description>Super helpful. Thanks!

At patricia; Just open up (sudo gedit yourfile.cpp) and keep editing. the built (compiled) version of your code is a different animal all together from the cpp file that you are editing.</description>
		<content:encoded><![CDATA[<p>Super helpful. Thanks!</p>
<p>At patricia; Just open up (sudo gedit yourfile.cpp) and keep editing. the built (compiled) version of your code is a different animal all together from the cpp file that you are editing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patricia</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-108811</link>
		<dc:creator>Patricia</dc:creator>
		<pubDate>Wed, 31 Aug 2011 20:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-108811</guid>
		<description>Hey Guys, thanks for the help!  This worked for me and I ran my C++ program.  Once you create the editor file in Ubuntu, how would open the file back up?</description>
		<content:encoded><![CDATA[<p>Hey Guys, thanks for the help!  This worked for me and I ran my C++ program.  Once you create the editor file in Ubuntu, how would open the file back up?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: viikky</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-108374</link>
		<dc:creator>viikky</dc:creator>
		<pubDate>Fri, 19 Aug 2011 15:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-108374</guid>
		<description>guys i think it will works for other versions of ubuntu too</description>
		<content:encoded><![CDATA[<p>guys i think it will works for other versions of ubuntu too</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: viikky</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-108373</link>
		<dc:creator>viikky</dc:creator>
		<pubDate>Fri, 19 Aug 2011 15:51:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-108373</guid>
		<description>Guys i had a new idea install wine &amp; get borland c 5.02.then install it with wine. it is most compatible for ubuntu 10.04 &amp; ubuntu 11.04. if you use ubuntu 10.10 you must install borland c 4.5(or)turbo c 4.5.</description>
		<content:encoded><![CDATA[<p>Guys i had a new idea install wine &amp; get borland c 5.02.then install it with wine. it is most compatible for ubuntu 10.04 &amp; ubuntu 11.04. if you use ubuntu 10.10 you must install borland c 4.5(or)turbo c 4.5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jusitn</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-108052</link>
		<dc:creator>jusitn</dc:creator>
		<pubDate>Fri, 12 Aug 2011 23:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-108052</guid>
		<description>&quot;sudo aptitude install build-essential

This will install all the required packages for C and C++ compilers&quot;

For this do u write that code in the terminal to download the compiler 

and if so the terminal says that 
the sudo:aptitude: command not found

plzz help ty</description>
		<content:encoded><![CDATA[<p>&#8220;sudo aptitude install build-essential</p>
<p>This will install all the required packages for C and C++ compilers&#8221;</p>
<p>For this do u write that code in the terminal to download the compiler </p>
<p>and if so the terminal says that<br />
the sudo:aptitude: command not found</p>
<p>plzz help ty</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jing</title>
		<link>http://www.ubuntugeek.com/how-to-install-c-and-c-compilers-in-ubuntu-and-testing-your-first-c-and-c-program.html/comment-page-5#comment-104806</link>
		<dc:creator>Jing</dc:creator>
		<pubDate>Wed, 25 May 2011 16:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.ubuntugeek.com/?p=461#comment-104806</guid>
		<description>THanks</description>
		<content:encoded><![CDATA[<p>THanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

