3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Create C++ Programs on the EEE PC

Step 3Get G++

Get G++
to compile the C++ from text into a program, I use G++

Obtain G++:

This step uses the terminal, use the previously mentioned method to get one up.

First you need to become a super user on your Console.

Type:

->su

Hit 'Enter'

-> nano /etc/apt/sources.list

now when this file opens you will need to add the following line

deb ftp://ftp.us.debian.org/debian stable main contrib non-free

(This is if you are in the United States)

Then type: 'Ctrl' + 'X'
Hit 'Enter'
Then: 'Y'

Next, hit 'Enter' to close what you were just working on and get back to your command line

Back on the command line
Type:

->apt-get update

after that finishes you need to enter:

-> apt-get install build-essential

Make sure to put a capital Y for yes when the console asks you if you want to continue.

this will install the GCC and G++ compilers needed to program in C or C++
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
1
Followers
4
Author:mattameo213