Home » Language IDEs » C / C++ IDE (CDT) » Makefile does not run in Eclipse 2.1.2, CDT 1.2
Makefile does not run in Eclipse 2.1.2, CDT 1.2 [message #89160] |
Fri, 12 December 2003 20:15  |
Eclipse User |
|
|
|
Originally posted by: gagraf.prodigy.net
Makefile is:
main.exe: main.obj
ilink32 main.obj
main.obj: main.cpp
bcc32 -c main.cpp
I use Borland BC++ in Win98. If I run make from the commamd line
(C:\Eclip\cpp\>make), main.exe is created and appears in the Eclipse
workspace and can be run inside Eclipse.
|
|
| | | | | | | |
Re: Makefile does not run in Eclipse 2.1.2, CDT 1.2 [message #89987 is a reply to message #89735] |
Wed, 17 December 2003 12:27   |
Eclipse User |
|
|
|
Hi George,
Rather than running "make" from the DOS window, try running "make -k clean
all"
(the same line you see in the C-Build view) and see what you get.
I suspect you should add to your Makefile:
clean :
<TAB> del main.exe
Also, the -k option may or may not be supported by Borland's make, I don't
know.
(It tries to keep building when part of the build fails, useful when
you have many files to compile.) You can remove it from the CDT build
command
by the project Properties > C/C++ Make Project > Make Builder > Build
Setting = Stop On Error.
Cheers,
Brent
"George a. Graf" <gagraf@prodigy.net> wrote in message
news:brlthm$633$1@eclipse.org...
> alain wrote:
>
> > George a. Graf wrote:
>
> > > > Look at the C-Build view, what is the output ?
>
> > > > > George
>
> > > alain,
> > > The C-Build view has:
> > > make -k clean all
>
> > > Remark: I suspect I need to do some configuring, but I don't find
> > > documentation or examples.
>
>
> > Is make in you path, i.e. when you start a cmd.exe
> > can you use make ?
>
> > I suprise that the output is just "make -k clean all"
> > usually you would have things like "Error -1 make.exe CreateProcess()
...."
>
> Alain,
> Not sure what "when you start a cmd.exe" means. But, when I start a DOS
> window and change to the project directory, I can just enter "make" and
> make runs and creates main.exe. (autoexec.bat contains PATH statement to
> allow Borland's make program to run from and directory).
> George
>
>
>
>
|
|
|
Re: Makefile does not run in Eclipse 2.1.2, CDT 1.2 [message #90155 is a reply to message #89987] |
Thu, 18 December 2003 13:54   |
Eclipse User |
|
|
|
Originally posted by: gagraf.prodigy.net
Brent Nicolle wrote:
> Hi George,
> Rather than running "make" from the DOS window, try running "make -k clean
> all"
> (the same line you see in the C-Build view) and see what you get.
> I suspect you should add to your Makefile:
> clean :
> <TAB> del main.exe
> Also, the -k option may or may not be supported by Borland's make, I don't
> know.
> (It tries to keep building when part of the build fails, useful when
> you have many files to compile.) You can remove it from the CDT build
> command
> by the project Properties > C/C++ Make Project > Make Builder > Build
> Setting = Stop On Error.
> Cheers,
> Brent
Hi Brent,
Your comments made sense, but still have same problem: make does not run
inside Eclipse. I did the following:
1. changed makefile to:
all: main.exe
main.exe: main.cpp
<tab> bcc32 main.cpp
clean:
<tab> del main.exe
2. set Build Setting to Stop On Error.
Now, C-Build view shows: make clean all
And, in DOS window the command make clean all, first deletes main.exe and
then builds main.exe. In Eclipse, re-build project does not work.
Main.exe
can be run after I build it from the DOS window command line.
George
> "George a. Graf" <gagraf@prodigy.net> wrote in message
> news:brlthm$633$1@eclipse.org...
> > alain wrote:
> >
> > > George a. Graf wrote:
> >
> > > > > Look at the C-Build view, what is the output ?
> >
> > > > > > George
> >
> > > > alain,
> > > > The C-Build view has:
> > > > make -k clean all
> >
> > > > Remark: I suspect I need to do some configuring, but I don't find
> > > > documentation or examples.
> >
> >
> > > Is make in you path, i.e. when you start a cmd.exe
> > > can you use make ?
> >
> > > I suprise that the output is just "make -k clean all"
> > > usually you would have things like "Error -1 make.exe CreateProcess()
> ...."
> >
> > Alain,
> > Not sure what "when you start a cmd.exe" means. But, when I start a DOS
> > window and change to the project directory, I can just enter "make" and
> > make runs and creates main.exe. (autoexec.bat contains PATH statement to
> > allow Borland's make program to run from and directory).
> > George
> >
> >
> >
> >
|
|
| |
Re: Makefile does not run in Eclipse 2.1.2, CDT 1.2 [message #90318 is a reply to message #90169] |
Fri, 19 December 2003 10:56   |
Eclipse User |
|
|
|
Ah.
To quote the favoured solution of a friend of mine:
1. Re-install your operating system.
Win98 is not a supported platform. After CDT 1.1, I remember trying it out
and being as disappointed as you are now.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=36688
There are technical challenges to making Win98 work properly, and none
of the current contributors are interested in meeting those challenges.
At least now you know!
Cheers,
- Brent
"Gary" <eclipse@garydjones.mailshell.com> wrote in message
news:brsttk$vvq$1@eclipse.org...
> George a. Graf wrote:
>
> > still have same problem: make does not run
> > inside Eclipse.
> [snip]
> > Now, C-Build view shows: make clean all
> > And, in DOS window the command make clean all, first deletes main.exe
and
> > then builds main.exe. In Eclipse, re-build project does not work.
> > Main.exe
> > can be run after I build it from the DOS window command line.
>
> It sounds like you have the same problem as me. Same symptoms anyway. I
too
> am using Win98, I wonder if anyone ever tested CDT on 98 or just hoped it
all
> worked...
|
|
| | |
Goto Forum:
Current Time: Tue Sep 16 18:41:09 EDT 2025
Powered by FUDForum. Page generated in 0.15960 seconds
|