about C/C++ rebuild [message #60201] |
Wed, 29 January 2003 11:35  |
Eclipse User |
|
|
|
Hi,
anyone knows what the following message means?
Build Error
(CreateProcess: make -f makefile error=2)
actually, I just follow the eclipse website, try to set up environment
for c/c++ program on windows platform
I use a makefile, which is same as the that in CDT page,
but I got this message, I am not clear what the problem is.
The following is the contents of makefile:
objects = hello.o
hello : $(objects)
c:\mingw\bin\gcc -o hello $(objects) -L
C:\MinGW\lib\gcc-lib\mingw32\3.2\ -lstdc++
$(objects) : hello.cpp
c:\mingw\bin\gcc -c hello.cpp
all :
${MAKE} hello
..PHONY : clean
clean :
-del hello.exe $(objects)
Thanks!
Q
|
|
|
|
Re: about C/C++ rebuild [message #60319 is a reply to message #60248] |
Thu, 30 January 2003 17:48   |
Eclipse User |
|
|
|
Hi,
I tried, c:\mingw\bin\mingw32-make, but it only works on command line.
it does not work in eclipse.
Mary
Alex Chapiro wrote:
> Are you sure that make is in path?
> It seems to be a message from spawner. Code 2 means ERROR_FILE_NOT_FOUND.
> Actually it means two things:
> 1) You don't have spawner (this message you saw is a result of failing of
> Runtime.exec() function. So you installed CDT incorrectly.
> 2) You don't have make in path
>
> Alex Chapiro
>
> "Qhmd" <hmdeng6@yahoo.com> wrote in message
> news:3E3802B7.746B2308@yahoo.com...
> > Hi,
> >
> > anyone knows what the following message means?
> >
> > Build Error
> > (CreateProcess: make -f makefile error=2)
> >
> > actually, I just follow the eclipse website, try to set up environment
> > for c/c++ program on windows platform
> >
> > I use a makefile, which is same as the that in CDT page,
> > but I got this message, I am not clear what the problem is.
> >
> > The following is the contents of makefile:
> >
> > objects = hello.o
> >
> > hello : $(objects)
> > c:\mingw\bin\gcc -o hello $(objects) -L
> > C:\MinGW\lib\gcc-lib\mingw32\3.2\ -lstdc++
> >
> > $(objects) : hello.cpp
> > c:\mingw\bin\gcc -c hello.cpp
> >
> > all :
> > ${MAKE} hello
> >
> > .PHONY : clean
> > clean :
> > -del hello.exe $(objects)
> >
> > Thanks!
> >
> > Q
> >
|
|
|
Re: about C/C++ rebuild [message #60391 is a reply to message #60319] |
Fri, 31 January 2003 09:01   |
Eclipse User |
|
|
|
Originally posted by: ash371952.hotmail.com
That's simple. Just go to project properties, C/C++ Project, then cpecify
your own build command.
"Qhmd" <hmdeng6@yahoo.com> wrote in message
news:3E39ABBE.4FA466D0@yahoo.com...
> Hi,
>
> I tried, c:\mingw\bin\mingw32-make, but it only works on command line.
> it does not work in eclipse.
>
> Mary
>
> Alex Chapiro wrote:
>
> > Are you sure that make is in path?
> > It seems to be a message from spawner. Code 2 means
ERROR_FILE_NOT_FOUND.
> > Actually it means two things:
> > 1) You don't have spawner (this message you saw is a result of failing
of
> > Runtime.exec() function. So you installed CDT incorrectly.
> > 2) You don't have make in path
> >
> > Alex Chapiro
> >
> > "Qhmd" <hmdeng6@yahoo.com> wrote in message
> > news:3E3802B7.746B2308@yahoo.com...
> > > Hi,
> > >
> > > anyone knows what the following message means?
> > >
> > > Build Error
> > > (CreateProcess: make -f makefile error=2)
> > >
> > > actually, I just follow the eclipse website, try to set up environment
> > > for c/c++ program on windows platform
> > >
> > > I use a makefile, which is same as the that in CDT page,
> > > but I got this message, I am not clear what the problem is.
> > >
> > > The following is the contents of makefile:
> > >
> > > objects = hello.o
> > >
> > > hello : $(objects)
> > > c:\mingw\bin\gcc -o hello $(objects) -L
> > > C:\MinGW\lib\gcc-lib\mingw32\3.2\ -lstdc++
> > >
> > > $(objects) : hello.cpp
> > > c:\mingw\bin\gcc -c hello.cpp
> > >
> > > all :
> > > ${MAKE} hello
> > >
> > > .PHONY : clean
> > > clean :
> > > -del hello.exe $(objects)
> > >
> > > Thanks!
> > >
> > > Q
> > >
>
|
|
|
Re: about C/C++ rebuild [message #60998 is a reply to message #60391] |
Mon, 03 February 2003 19:38  |
Eclipse User |
|
|
|
Originally posted by: alain.no.spam
Alex Chapiro wrote:
> That's simple. Just go to project properties, C/C++ Project, then cpecify
> your own build command.
This will affect only one project. A less known fact:
- edit the org.eclipse.cdt.core/plugin.xml
- search for the extension-point "CBuildCommand"
- change the default command to what you have instead of
the default "make"
This should probably be in a preference page, but the
state of the default CDT builder is still fuzzy.
> "Qhmd" <hmdeng6@yahoo.com> wrote in message
> news:3E39ABBE.4FA466D0@yahoo.com...
> > Hi,
> >
> > I tried, c:\mingw\bin\mingw32-make, but it only works on command line.
> > it does not work in eclipse.
> >
> > Mary
> >
> > Alex Chapiro wrote:
> >
> > > Are you sure that make is in path?
> > > It seems to be a message from spawner. Code 2 means
> ERROR_FILE_NOT_FOUND.
> > > Actually it means two things:
> > > 1) You don't have spawner (this message you saw is a result of failing
> of
> > > Runtime.exec() function. So you installed CDT incorrectly.
> > > 2) You don't have make in path
> > >
> > > Alex Chapiro
> > >
> > > "Qhmd" <hmdeng6@yahoo.com> wrote in message
> > > news:3E3802B7.746B2308@yahoo.com...
> > > > Hi,
> > > >
> > > > anyone knows what the following message means?
> > > >
> > > > Build Error
> > > > (CreateProcess: make -f makefile error=2)
> > > >
> > > > actually, I just follow the eclipse website, try to set up environment
> > > > for c/c++ program on windows platform
> > > >
> > > > I use a makefile, which is same as the that in CDT page,
> > > > but I got this message, I am not clear what the problem is.
> > > >
> > > > The following is the contents of makefile:
> > > >
> > > > objects = hello.o
> > > >
> > > > hello : $(objects)
> > > > c:\mingw\bin\gcc -o hello $(objects) -L
> > > > C:\MinGW\lib\gcc-lib\mingw32\3.2\ -lstdc++
> > > >
> > > > $(objects) : hello.cpp
> > > > c:\mingw\bin\gcc -c hello.cpp
> > > >
> > > > all :
> > > > ${MAKE} hello
> > > >
> > > > .PHONY : clean
> > > > clean :
> > > > -del hello.exe $(objects)
> > > >
> > > > Thanks!
> > > >
> > > > Q
> > > >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.08411 seconds