Professional Documents
Culture Documents
Search
Home
Forum
Free Ubuntu E-Books
Submit Article
Top Posts
Ubuntu Hosting
Contact
About
Subscribe
Sitemap
Privacy Policy
Search
Ads by Google DVD Install Ubuntu Dish Install Cygw in GCC PC Install
Sponsor
Ads by Google
Ubuntu Linux Desktop
Install Softw are
Install Window s
Computer Install
Vista Install
Categories
Backup
Free Books
General
Monitoring
Networking
D:/…/how-to-install-c-and-c-compilers-i… 1/8
17-Mar-11 How to Install C and C++ Compilers in …
News
Package Mgmt
Security
Server
Sponsor
Ads by Google
Linux Install
PC Install
Install Image
Install MSN
Install Update
Login/Register
Register
Log in
Archives
Select Month
If you're new here, you may want to subscribe to my RSS feed and if you have questions related to your
ubuntu system post question to our forums. Thanks for visiting!
This will install all the required packages for C and C++
compilers
D:/…/how-to-install-c-and-c-compilers-i… 2/8
17-Mar-11 How to Install C and C++ Compilers in …
Testing C and C++ Programs
cc -c first.c
that would produce an object file you may need to add to the library.
cc -o first first.c
./first
Hello, world
D:/…/how-to-install-c-and-c-compilers-i… 3/8
17-Mar-11 How to Install C and C++ Compilers in …
./test
Hello World!
Related Articles
124 Comments to “How to Install C and C++ Compilers in Ubuntu and testing your
first C and C++ Program”
1. Rudra says:
November 25, 2010 at 6:26 pm
@ Pral
Hey in unix system there are no drive concept (like c:\,d:\ etc). all are these declare as a file system. you
can find them at /media/(file system name). you want to paste some .h file? but there are no need for this
because ubuntu have preinstall these library files.
2. Rodrigo says:
December 2, 2010 at 11:20 am
3. Eddie says:
December 27, 2010 at 2:24 pm
It is useful to install manpages in addition to the compilers. You can do this for example using the following
command:
← Older comments
Leave a Reply
Name (required)
Website
D:/…/how-to-install-c-and-c-compilers-i… 5/8
17-Mar-11 How to Install C and C++ Compilers in …
Recent comments
lemon: "Pardon me for asking, but what possible
Tresopi: The second link of the previous comment
Balach Baloch: i have even tried apt-get install to ins
Balach Baloch: i have done all those steps above
but, i Getting Started with Ubuntu
fernando: Hello! First congratulations on the wond 10.04 (Lucid Ly nx) is a
comprehensive beginners guide
for the Ubuntu operating sy stem
Popular posts .
Download Now
Speed Up Firefox web browser (185)
iPhone Tethering on Ubuntu 9.10 (Karmic) (159)
Send and Receive Your Hotmail messages through
Evolution (145) RSS Feed
Atheros AR5007 wireless with madwifi on Ubuntu
8.04 (Hardy heron) (144)
D:/…/how-to-install-c-and-c-compilers-i… 6/8
17-Mar-11 How to Install C and C++ Compilers in …
How to Install Java Runtime Environment (JRE) in
Ubuntu (139)
UbuntuGeek on Twitter
Professional Linux
Laptop
Linux on M6500,
M4500, E6510, E4310
Fedora, Ubuntu, RHEL,
Debian, Slack
www.Em perorLinux .com
AI Planning &
Scheduling
encodes expert
knowledge to solve
problems with complex
constraints
www.stottle rhe nk e .com /
Learn embedded
linux $219
Hands-on kit teaches
fundamentals of
embedded Linux
development
www.Inte lliMetrix.us
440+ of Linux
Openings
Exp: 0 to 13 Yrs.Sal:
25k to 95k PM Apply
Now & get Multiple
Interviews
Tim e sJobs.com /C ++_Lin…
D:/…/how-to-install-c-and-c-compilers-i… 7/8
17-Mar-11 How to Install C and C++ Compilers in …
Web Hosting
Support Ubuntugeek
Amount $: 5.00
Website(Optional):
Favourite Sites
My Daily Tech Tips
Chrome OS Geek
Windows Reference
Debian Admin
DebianHelp
SuSe Linux Tutorials
Ubuntux
Tuxmachines
Unixmen
Arabic ubuntu support
D:/…/how-to-install-c-and-c-compilers-i… 8/8