compiling using Eclipse

Discussion in 'C++' started by Dimesh, Jul 24, 2010.

  1. Dimesh

    Dimesh New Member

    Joined:
    Jul 12, 2010
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. Ancient Dragon

    Ancient Dragon New Member

    Joined:
    Jul 23, 2010
    Messages:
    26
    Likes Received:
    2
    Trophy Points:
    0
    Occupation:
    part time cashier at WalMart
    Location:
    near St Louis, IL, USA
    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.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice