Cant get eclipse to work [message #155383] |
Sat, 03 June 2006 21:42 |
Zam Messages: 3 Registered: July 2009 |
Junior Member |
|
|
Ok I am tryingt to run C/C++, but its not working.
here are the steps i have taken
I have installed cygwin and all its componets in the directory c:\cygwin
i have check to see that it was properly installed so i went into cmd
typed in path and there it was ...;c:\cygwin\bin and when i typed gcc it
said "gcc: no input file"
After that i downloaded eclipse and installed it.
i went to help software update added the new site and installed both the
CDT addons
i restared eclipse and restarted my computer
i opened eclipse created a standard make c++ project, named it HelloWorld
i hit next then clicked on Error PArsers and made sure everything was
checked then i went to Binary Parser Tab and make sure PE Windows and
Cygwin PE Parser were checked. then i clicked finish.
I then right clicked > new >file > makefile copied and pasted
-----------------------------
all: hello
clean:
-rm main.o hello.exe hello
hello: main.o
g++ -g -o hello main.o
main.o: main.cpp
g++ -c -g main.cpp
------------------------------------
then i created a new file named main.cpp
and copied and pasted this
-------------------------------------
#include <iostream>
#include <string>
using namespace std;
int main()
{
string yourName;
cout << "Enter your name: ";
cin >> yourName;
cout << "Hello " + yourName << endl;
return 0;
}
-----------------------------------------
i then hit ctrl+s and ctrl+b
i got the following error msg
"*** No rule to make target `all'."
"*** No rule to make target `clean'."
aftwards i went to run and hit Run...
Run window opened and i selected C/C++ Local applications then a sub list
came up with the name of my project "HelloWorld" i clicked on it and the
menu changed tot he side, i clicked on "Search Project..." but there was
nothing, no list, just a new window with a black white space where i
assume the list of projects would be. So i just entered the name
hello.exe. hit apply but the "Run" button never activated so i can push it
it remained gray where otherwise the name "Run" would turn black.
i went around and trying changing everything i could to get the run button
to come up so i can push it but i couldn't.
Can someone please help me. Everything i have done i have listed already
plush the fact that i unchecked Nuild Automaticly.
Please help me pleaseee
|
|
|
Powered by
FUDForum. Page generated in 0.08685 seconds