Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   compiling using Eclipse (http://www.go4expert.com/forums/compiling-using-eclipse-t22804/)

Dimesh 24Jul2010 20:44

compiling using Eclipse
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:


#include <iostream>

        using namespace std;

        int main()
                int counter = 0;

                        counter ++;
                        if(counter > 10)
                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

Ancient Dragon 25Jul2010 20:04

Re: compiling using Eclipse
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.

All times are GMT +5.5. The time now is 09:14.