Suddenly error

Al salamo Aleekom

And Hi...

Thank you for reading my topic...
--------------------------------------------

Today and yesterday,Suddenly .... i get a problem when i writing any C++ code in ecplise
i tried most of my previous codes but it give same problem...!
Can anyone help?!

here is the code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <iostream>

	using namespace std;

	int main()
	{
		int counter = 0;

		while(true)
		{
			counter ++;
			if(counter > 10)
				break;
		}
		cout << "Counter: " << counter << endl;
		return 0;
	}



and this is Console view after build (debuging):

**** Build of configuration Debug for project Linux_Xp_Learning ****

make all 
Building file: ../while_true_loop.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"while_true_loop.d" -MT"while_true_loop.d" -o"while_true_loop.o" "../while_true_loop.cpp"
/bin/sh: g++: not found
make: *** [while_true_loop.o] Error 127
You'll need to install g++.

Try a
sudo apt-get install g++
Thanks mr.Athar
Topic archived. No new replies allowed.