Home » Language IDEs » C / C++ IDE (CDT) » how to get Eclipse to run 'make'
how to get Eclipse to run 'make' [message #76493] |
Tue, 22 July 2003 13:49  |
Eclipse User |
|
|
|
Originally posted by: eipe.NOSPAMuiuc.edu
Hi
I installed MinGW(http://www.mingw.org) on my machine, but when I try to
get Eclipse to run 'make', make fails.
Console output:
gcc -c hello.c
process begin: CreateProcess((null), gcc -c hello.c, ...) failed.
make (e=2): The system cannot find the file specified.
C:\mingw\bin\mingw32-make.exe: *** [hello.o] Error 2
The last line above is also the location of the make executable, in the
build path of the Properties page of the project.
Its just a simple project, with a hello.c file, and a makefile:
hello : hello.o
gcc -o hello hello.o
hello.o : hello.c
gcc -c hello.c
I know this is kind of a basic question, but any help is appreciated,
thanks.
Rohit Eipe
|
|
|
Re: how to get Eclipse to run 'make' [message #76683 is a reply to message #76493] |
Wed, 23 July 2003 21:25   |
Eclipse User |
|
|
|
Originally posted by: alain.nowhere.ca
Rohit Eipe wrote:
> Hi
> I installed MinGW(http://www.mingw.org) on my machine, but when I try to
> get Eclipse to run 'make', make fails.
> Console output:
> gcc -c hello.c
> process begin: CreateProcess((null), gcc -c hello.c, ...) failed.
> make (e=2): The system cannot find the file specified.
> C:mingwbinmingw32-make.exe: *** [hello.o] Error 2
> The last line above is also the location of the make executable, in the
> build path of the Properties page of the project.
> Its just a simple project, with a hello.c file, and a makefile:
> hello : hello.o
> gcc -o hello hello.o
> hello.o : hello.c
> gcc -c hello.c
> I know this is kind of a basic question, but any help is appreciated,
> thanks.
Actually looking at this it seems you mingw32-make did not fine
"gcc", You will have to also set you path or instead of just doing
"gcc" put the exact path:
hello : hello.o
C:\mingw\bin\gcc -o hello hello.o
hello.o : hello.c
C:\mingw\bin\gcc -c hello.c
Or something similar
> Rohit Eipe
|
|
|
Re: how to get Eclipse to run 'make' [message #76947 is a reply to message #76683] |
Thu, 24 July 2003 14:40   |
Eclipse User |
|
|
|
Originally posted by: eipe.NOSPAMuiuc.edu
alain wrote:
> Rohit Eipe wrote:
> > Hi
> > I installed MinGW(http://www.mingw.org) on my machine, but when I try to
> > get Eclipse to run 'make', make fails.
> > Console output:
> > gcc -c hello.c
> > process begin: CreateProcess((null), gcc -c hello.c, ...) failed.
> > make (e=2): The system cannot find the file specified.
> > C:mingwbinmingw32-make.exe: *** [hello.o] Error 2
> > The last line above is also the location of the make executable, in the
> > build path of the Properties page of the project.
> > Its just a simple project, with a hello.c file, and a makefile:
> > hello : hello.o
> > gcc -o hello hello.o
> > hello.o : hello.c
> > gcc -c hello.c
> > I know this is kind of a basic question, but any help is appreciated,
> > thanks.
> Actually looking at this it seems you mingw32-make did not fine
> "gcc", You will have to also set you path or instead of just doing
> "gcc" put the exact path:
> hello : hello.o
> C:mingwbingcc -o hello hello.o
> hello.o : hello.c
> C:mingwbingcc -c hello.c
> Or something similar
> > Rohit Eipe
That was it .. thanks.
Rohit Eipe
|
|
|
Re: how to get Eclipse to run 'make' [message #79858 is a reply to message #76683] |
Sat, 06 September 2003 13:31   |
Eclipse User |
|
|
|
Originally posted by: sdratva.gmx.net
alain wrote:
> Rohit Eipe wrote:
> > Hi
> > I installed MinGW(http://www.mingw.org) on my machine, but when I try to
> > get Eclipse to run 'make', make fails.
> > Console output:
> > gcc -c hello.c
> > process begin: CreateProcess((null), gcc -c hello.c, ...) failed.
> > make (e=2): The system cannot find the file specified.
> > C:mingwbinmingw32-make.exe: *** [hello.o] Error 2
> > The last line above is also the location of the make executable, in the
> > build path of the Properties page of the project.
> > Its just a simple project, with a hello.c file, and a makefile:
> > hello : hello.o
> > gcc -o hello hello.o
> > hello.o : hello.c
> > gcc -c hello.c
> > I know this is kind of a basic question, but any help is appreciated,
> > thanks.
> Actually looking at this it seems you mingw32-make did not fine
> "gcc", You will have to also set you path or instead of just doing
> "gcc" put the exact path:
> hello : hello.o
> C:mingwbingcc -o hello hello.o
> hello.o : hello.c
> C:mingwbingcc -c hello.c
> Or something similar
> > Rohit Eipe
Hi,
I've got the same problem, and solved it the same way, but g++ was in my
path variable and if I started make (mingw32-make -f makefile) from
DOS-Window, it worked correct. As I renamed g++.exe in gpp.exe, it began
to work also in eclipse correct...
Alex
|
|
| | | |
Re: how to get Eclipse to run 'make' [message #94599 is a reply to message #94585] |
Wed, 18 February 2004 08:57  |
Eclipse User |
|
|
|
Well,
If you have installed Cygwin and are using the Cygwin bash shell, the
environment will obviously be correct. The question is whether those
commands are available from a Win32 shell. If you are certain that they
are, have you restarted Eclipse under the new environment? If it is an
old session (one that was running before you installed Cygwin), then it
will not have inheritted the proper environment.
lazareer wrote:
> user David Daoust wrote:
>
>
>>This error is comming from the make executable. It is saying that it
>>cannot create a process running "rm".
>>
>>You should get the same error message if you run make from the command
>>line. The solution is to ensure that "rm", "g++", and "make" are all
>>on the path.
>>
>>It probably makes sense to debug this outside of eclipse, by going to
>>the correct directory in a command shell and typing make.
>
>
> As I have written in the previous post - everything works fine from the
> shell command line, only Eclipse cannot work properly.
>
|
|
|
Goto Forum:
Current Time: Sat Jul 12 23:00:46 EDT 2025
Powered by FUDForum. Page generated in 0.05572 seconds
|