Today I wish to tell about how to compile and run C/C++ programs in ubuntu 10.10.If you are a developer of C/C++ you need a compiler for the development of the programs.Ubuntu 10.10 has the compiler inbuilt with the operating system.Incase if the compiler is missing you download the package and able to install.
To download -Open the terminal and type the following.
sudo aptitude install build-essential
this will install the required packages of C/C++ compilers.
How to compile and run the C program
1.From the apllications open the terminal and type sudo gedit first.c
This will open a new file type the C program and save it
for eg. #include<stdio.h>
int main()
{
printf("Hello,world\n");
return 0;
}
2.for compiling type cc -c first.c
that will create an object file and add to the library.
3.then create an executable file using the following command
cc -o first first.c
4.Then run the Program by typing
./first
5.Output should be asfollows
Hello,world
How to compile the C++ program.
If you want to run a C++ program you must need a g++compiler.
1.create a file using sudo gedit first.cpp
eg.#include<iostream.h>
int main()
{
std:: cout << "Hello world!" <<std::endl;
return 0;
}
Run your C++ program using the following command
g++first.cpp -o test
then
./first
Output will be as follows
Hello, world!
Tags:Ubuntu compiling C & C++ in ubuntu
Upgrading Ubuntu 10.10 maverick meerkats from ubuntu 10.04 lucid karmic
Saturday, October 16, 2010
Are you using the older versions of ubuntu?It's time to move forward to the new linux ubuntu10.10 maverick meerkats.The full version of the ubuntu10.10 has been launched.
Upgrading the Desktop edition:
So to upgrade the desktop edition press ALT+F2 and type update-manager -d in the command box.Update manager opens and tells you a new version of Ubuntu is available.
1.Press ALT+F2 and type update-manager -d
2.The following screen will be appeard.Frist install all the updates and then click for upgrade.
Upgrading Server edition:
To upgrade from Ubuntu 10.04 LTS on a server system:
1- install the update-manager-core package if it is not already installed:
sudo apt-get install update-manager-core
2- Edit /etc/update-manager/release-upgrades and set Prompt=normal;
3- Launch the upgrade tool with the command
sudo do-release-upgrade -d
and follow the instructions..
Ubuntu 10.10 now available for download
The release of ubuntu 10.10 is held on 10-10-10 and now it is able to download.It is available in both 32-bit and 64-bit.The editions present are Desktop,Netbook and Server.Enjoy the multitouch netbook editions........
click here to download
click here to download
Ubuntu Tweak
Ubuntu Tweak:
Ubuntu tweak is an application used config ubuntu easier for everyone.It is simple tool for the configuration.But it is very efficient.
Ubuntu tweak is also an opensource software.It is designed under the GNU(General Public Licence) as published by the free software.
It provides many useful desktop and system options that the default desktop does not provide.It has many features such as
The various interfaces of ubuntu tweak 0.5.6 are
http://ubuntu-tweak.com/
Ubuntu tweak is an application used config ubuntu easier for everyone.It is simple tool for the configuration.But it is very efficient.
Ubuntu tweak is also an opensource software.It is designed under the GNU(General Public Licence) as published by the free software.
It provides many useful desktop and system options that the default desktop does not provide.It has many features such as
- the applications can be installed quickly.
- Tweak otherwise hidden settings.
- It is used to cleanup unused packages to free diskspaces.
- It mostly helps to install easily up-to-date versions
- Advanced Power Management Settings
- System Security Settings
- GNOME Panel Settings
The various interfaces of ubuntu tweak 0.5.6 are
http://ubuntu-tweak.com/
Countdown banner for Maverick meerkats
Wednesday, September 29, 2010
The countdown banner for the release of new ubuntu 10.10
The final release is on sunday-October 10,2010.
The final release is on sunday-October 10,2010.
Ubuntu-The versions and animals
Ubuntu Warty WARTHOG (4.10):
This is the first version of Linux distribution.Mark has launched the name that will be adopted and adapted to any future versions of Ubuntu. Thus each version will have a code name composed of an adjective and an animal name.
Ubuntu Hoary HEDGEHOG (5.04):
Ubuntu Breezy BADGER (5.10):
Ubuntu Dapper DRAKE (6.06):
Ubuntu Edgy EFT (6.10):
Ubuntu Feisty FAWN (7.04):
Ubuntu Gutsy GIBBON (7.10):
Ubuntu Hardy HERON (8.04):
Ubuntu Intrepid IBEX (8.10):
Ubuntu Jaunty JACKALOPE (9.04):
Ubuntu Karmic KOALA (9.10):
Ubuntu Lucid LYNX (10.04):
Ubuntu Maverick MEERKAT (10.10):
Natty | Narwhal | 11.04: |
courtsy:blog.nizarus.org
Ubuntu Release Naming scheme
For every release of Ubuntu there is a presence funkiest name of code.
Release Naming scheme:
"Ubuntu X.YY"-is used as the official name of ubuntu release.
X-representing the year(minus 2000).
YY-representing the month of the release within that year.
Ubuntu first release is 4.10 ie.the release made in 2004 October(4.10)
courtesy:https://wiki.ubuntu.com/DevelopmentCodeNames
Release Naming scheme:
"Ubuntu X.YY"-is used as the official name of ubuntu release.
X-representing the year(minus 2000).
YY-representing the month of the release within that year.
Ubuntu first release is 4.10 ie.the release made in 2004 October(4.10)
courtesy:https://wiki.ubuntu.com/DevelopmentCodeNames
Countdown banner for Maverick meerkats
Tuesday, September 28, 2010
The countdown banner for the release of new ubuntu10.10 ...
Release date for Maverick meerkats:
Alpha 1-June 3rd,2010
Alpha 2 - July 1st, 2010
Alpha 3 - August 5th, 2010
Beta - September 2nd, 2010
Release Candidate - September 30th, 2010
Final Release - SUNDAY - October, 10, 2010
Release date for Maverick meerkats:
Alpha 1-June 3rd,2010
Alpha 2 - July 1st, 2010
Alpha 3 - August 5th, 2010
Beta - September 2nd, 2010
Release Candidate - September 30th, 2010
Final Release - SUNDAY - October, 10, 2010
Ubuntu 10.10-Marverick Meerkat
Our mascot for the 10.10 is the Maverick Meerkats
It's time to move for the ubuntu users by the releasing of new ubuntu10.10.This brings the linux world a change and a better opensource for the linux users.The of linux users are steadily increases from day to day.The ubuntu developers are moving quickly to bring the new ubuntu by the absolute and the latest opensource community.
Ubuntu is one of the better opensource source software with better performance and with multiple features.Along with that the new ubuntu will turn the linux world with high and efficient performance.It's the time to change all towards to the new ubuntu known as Maverick Meerkats.
We’re Social from the Start, but we could get even more tightly connected, and we could bring social features into even more applications. Meerkats are family-oriented, and we aspire to having Ubuntu being the safe and efficient solution for all the family netbooks.So its time for the Meerkats to come around all the world..
Subscribe to:
Posts (Atom)