Skip to main content



      Home
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 Go to next message
Eclipse UserFriend
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 #89189 is a reply to message #89160] Sat, 13 December 2003 03:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gagraf.prodigy.net

George a. Graf wrote:

> 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:Eclipcpp>make), main.exe is created and appears in the Eclipse
> workspace and can be run inside Eclipse.

Note original makefile does not work. This makefile works from command
line and still does not run from inside Eclipse:

main.exe: main.cpp
bcc32 main.cpp
Re: Makefile does not run in Eclipse 2.1.2, CDT 1.2 [message #89204 is a reply to message #89189] Sat, 13 December 2003 09:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Norbert.Marrek.siemens.com

Hi George,

>
> Note original makefile does not work. This makefile works from command
> line and still does not run from inside Eclipse:
>
> main.exe: main.cpp
> bcc32 main.cpp
>

Did you forget to put a TAB before the bcc32 line?

Bye,
Norbert
Re: Makefile does not run in Eclipse 2.1.2, CDT 1.2 [message #89218 is a reply to message #89204] Sat, 13 December 2003 12:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gagraf.prodigy.net

Norbert Marrek wrote:

> Hi George,

> >
> > Note original makefile does not work. This makefile works from command
> > line and still does not run from inside Eclipse:
> >
> > main.exe: main.cpp
> > bcc32 main.cpp
> >

> Did you forget to put a TAB before the bcc32 line?

> Bye,
> Norbert

Hi Norbert,
No. The tab got lost in the translation. I suspect my problem lies in the
support of non gnu make programs.

George
Re: Makefile does not run in Eclipse 2.1.2, CDT 1.2 [message #89528 is a reply to message #89218] Mon, 15 December 2003 11:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alain.nowhere.ca

George a. Graf wrote:

> Norbert Marrek wrote:

> > Hi George,

> > >
> > > Note original makefile does not work. This makefile works from command
> > > line and still does not run from inside Eclipse:
> > >
> > > main.exe: main.cpp
> > > bcc32 main.cpp
> > >

> > Did you forget to put a TAB before the bcc32 line?

> > Bye,
> > Norbert

> Hi Norbert,
> No. The tab got lost in the translation. I suspect my problem lies in the
> support of non gnu make programs.


Look at the C-Build view, what is the output ?

> George
Re: Makefile does not run in Eclipse 2.1.2, CDT 1.2 [message #89621 is a reply to message #89528] Mon, 15 December 2003 13:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gagraf.prodigy.net

alain wrote:

> George a. Graf wrote:

> > Norbert Marrek wrote:

> > > Hi George,

> > > >
> > > > Note original makefile does not work. This makefile works from command
> > > > line and still does not run from inside Eclipse:
> > > >
> > > > main.exe: main.cpp
> > > > bcc32 main.cpp
> > > >

> > > Did you forget to put a TAB before the bcc32 line?

> > > Bye,
> > > Norbert

> > Hi Norbert,
> > No. The tab got lost in the translation. I suspect my problem lies in the
> > support of non gnu make programs.


> 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.
George
Re: Makefile does not run in Eclipse 2.1.2, CDT 1.2 [message #89706 is a reply to message #89621] Mon, 15 December 2003 17:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alain.nowhere.ca

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() ..."
Re: Makefile does not run in Eclipse 2.1.2, CDT 1.2 [message #89735 is a reply to message #89706] Mon, 15 December 2003 22:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gagraf.prodigy.net

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 #89987 is a reply to message #89735] Wed, 17 December 2003 12:27 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #90169 is a reply to message #90155] Thu, 18 December 2003 14:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.garydjones.mailshell.com

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...
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 Go to previous messageGo to next message
Eclipse UserFriend
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...
Re: Makefile does not run in Eclipse 2.1.2, CDT 1.2 [message #90346 is a reply to message #90318] Fri, 19 December 2003 11:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.garydjones.mailshell.com

Brent Nicolle wrote:
> Ah.
>
> To quote the favoured solution of a friend of mine:
> 1. Re-install your operating system.

Actually I think I'll just uninstall CDT, as going by what you say it can't
do what I need. Thanks for letting me know, I can free up the disk space for
something useful.

BTW, the original poster said in <brdp6v$1mu$1@eclipse.org> that he was
using W98. Seems a shame this knowledge isn't more readily available, for
example in the FAQ - "The CDT Framework is platform independent. It will
run where Eclipse will run". Yeah, right.
Re: Makefile does not run in Eclipse 2.1.2, CDT 1.2 [message #90526 is a reply to message #90346] Tue, 23 December 2003 09:07 Go to previous message
Eclipse UserFriend
Good point about the FAQ, Gary.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=49276

Cheers,

- Brent


"Gary" <eclipse@garydjones.mailshell.com> wrote in message
news:brv83h$b91$1@eclipse.org...
> Brent Nicolle wrote:
> > Ah.
> >
> > To quote the favoured solution of a friend of mine:
> > 1. Re-install your operating system.
>
> Actually I think I'll just uninstall CDT, as going by what you say it
can't
> do what I need. Thanks for letting me know, I can free up the disk space
for
> something useful.
>
> BTW, the original poster said in <brdp6v$1mu$1@eclipse.org> that he was
> using W98. Seems a shame this knowledge isn't more readily available, for
> example in the FAQ - "The CDT Framework is platform independent. It will
> run where Eclipse will run". Yeah, right.
Previous Topic:CDT for HP-Unix 11?
Next Topic:Tool bar,menu,wizard
Goto Forum:
  


Current Time: Tue Sep 16 18:42:25 EDT 2025

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

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

Back to the top