Click here to Skip to main content
16,020,103 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I've already install the gcc, g++ compiler, and jdk, but I just write a simple test, eclipse find problems, but it can run through it detect problems
CSS
1

#include <iostream>

using namespace std;

int main() {
    cout << endl;
    cout << endl;
    cout << "kill them all." << endl;

    return 0;
}



in the ecplise problem tab, it says :
Program "g++" not found in PATH
Symbol 'cout' could not be resolved kill.cpp    /an line 12 Semantic
Symbol 'cout' could not be resolved kill.cpp    /an line 14 Semantic
Symbol 'cout' could not be resolved kill.cpp    /an line 13 Semantic



here's my compiler:
root@yuan:/usr/bin# ls -l gcc* g++* cpp*
lrwxrwxrwx 1 root root 7 Oct 28 14:25 cpp -> cpp-4.7
-rwxr-xr-x 1 root root 531692 Sep 22 01:35 cpp-4.7
lrwxrwxrwx 1 root root 7 Oct 29 13:19 g++ -> g++-4.7
-rwxr-xr-x 1 root root 531692 Sep 22 01:37 g++-4.7
lrwxrwxrwx 1 root root 7 Oct 28 14:25 gcc -> gcc-4.7
-rwxr-xr-x 1 root root 527596 Sep 22 01:39 gcc-4.7
-rwxr-xr-x 1 root root 21996 Sep 22 01:39 gcc-ar-4.7
-rwxr-xr-x 1 root root 21996 Sep 22 01:39 gcc-nm-4.7
-rwxr-xr-x 1 root root 21996 Sep 22 01:39 gcc-ranlib-4.7</pre>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900