compiling using Eclipse

Dimesh's Avatar, Join Date: Jul 2010
Go4Expert Member
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:

Code:
#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
0
Ancient Dragon's Avatar, Join Date: Jul 2010
Go4Expert Member
From terminal window enter "g++" then Enter key to see if the program is in your PATH statement. If not then you need to search your file system to see if it is still installed on your computer.