Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse hangs while building a CPP program
Eclipse hangs while building a CPP program [message #63370] Sun, 02 March 2003 05:50 Go to next message
Eclipse UserFriend
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
Re: Eclipse hangs while building a CPP program [message #63392 is a reply to message #63370] Sun, 02 March 2003 08:37 Go to previous message
Eclipse UserFriend
This problem seem to produced by a very long PATH variable.When I shorten it
as possible as I can,the build become ok.
Is it a bug in CDT?
Previous Topic:Remote Debugging without mips
Next Topic:!!help!!
Goto Forum:
  


Current Time: Sun Jun 22 10:12:02 EDT 2025

Powered by FUDForum. Page generated in 0.04404 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top