Eclipse hangs while building a CPP program [message #63370] |
Sun, 02 March 2003 05:50  |
Eclipse User |
|
|
|
hi,all:
I am a newbie and just install Eclispe 2.02 and CDT 1.01 on a win2000
system. The C compiler is mingw.The version of make is 3.7.9.1.
When I build the example program like hello.cpp supplied in the FAQ,a popwin
shows "invoking command: make" and hang,even if I click the cancel
button,the popwin doesn't close yet.The only way is to terminate the Eclipse
application.
But When I am in a dos cmd windows,type the command "make -f makefile",all
are ok except some compile warnings.
Could anyone help me? And this happen on the Eclispe 2.1 too.
next is my cpp program and make file
CPP:
#include <iostream>
#include <string>
using namespace std;
int main()
{
string s1="Hello,world!";
cout<<s1<<endl;
return 1;
}
makefile:
Program = example
Suffix = Cpp
Compiler= gcc
all : $(Program).exe
$(Program).exe : $(Program).o
$(Compiler) -o $(Program) $(Program).o -L
D:\mingw\lib\gcc-lib\mingw32\3.2 -lstdc++
$(Program).o : $(Program).$(Suffix)
$(Compiler) -c $(Program).$(Suffix)
clean:
del $(Program).o
|
|
|
|
Powered by
FUDForum. Page generated in 0.04404 seconds