Mail Archives: djgpp/1999/10/12/16:38:32
Dear Eli,
First of all many thanks for taking the time to help me.
On 11 Oct 99, at 12:17, Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
> > RHIDE version 1.4
> This is not: the latest is 1.4.7; perhaps the problem I found (see
> below) is corrected there.
My problem is almost certainly due to the reason you mentioned
below and is due to a bug in RHIDE 1.4 wich has been corrected( I
think) in v1.4.7.
Because I downloaded RHIDE 1.4.7 and when I generated the
makefile and ran make, it checked test.h and recompiled test.cpp.
> Here's the relevant part of the Makefile:
>
> > all:: test.exe
> > DEPS_0=\
> > d:/paint/test.o <<<<<<<<
> > NO_LINK=
> > LINK_FILES=$(filter-out $(NO_LINK),$(DEPS_0))
> > test.exe:: $(DEPS_0)
> > $(RHIDE_COMPILE_LINK)
> > DEPS_1=test.cpp\
> > j:/djgpp/include/stdio.h\
> > j:/djgpp/include/sys/djtypes.h\
> > j:/djgpp/include/sys/version.h\
> > d:/paint/test.h
> > test.o:: $(DEPS_1)
> > $(RHIDE_COMPILE.cpp.o)
>
> The problem is in the dependency marked with "<<<<<<<<". It
>names the full pathname of test.o, whereas the dependency for
>test.o uses just
> "test.o". How's Make supposed to know these two are one and
>the same
> file? Make is just a text-processing program, as far as reading
>the
> Makefile is considered.
> If I change d:/paint/test.o to test.o, everything works like you'd
> expect.
You certainly are correct Eli, and here is the relevant part of the
makefile generated by RHIDE 1.4.7 (wich had no problems).
all::
DEPS_0= test.o <<<<<<<<<<<<<<
NO_LINK=
LINK_FILES=$(filter-out $(NO_LINK),$(DEPS_0))
test.exe:: $(DEPS_0)
$(RHIDE_COMPILE_LINK)
DEPS_1=test.cpp j:/djgpp/include/stdio.h
j:/djgpp/include/sys/djtypes.h\
j:/djgpp/include/sys/version.h test.h
test.o:: $(DEPS_1)
$(RHIDE_COMPILE.cpp.o)
all:: test.exe
As you can see (where I have marked <<<<<) d:\paint\test.o has
been corrected (by v1.4.7) to just test.o and (as you suggested)
therefore now works properly.
> Now, I don't know if this is a bug in RHIDE (I don't use RHIDE myself)
>or your own usage error.
This certainly is my opinion is a bug in v1.4 wich has been
remedied in v1.4.7.
Why doesn't the zip-picker recommend RHIDE v1.4.7 instead of
v1.4 ? AsI downloaded rhide14b.zip as the zip-picker suggested. I
got v1.4.7 from Robert's site.
Once again many thank's to everyone who helped me in my
problem and I really appreciate your assistance.
Kalum Somaratna <kalum AT myflat DOT com>
- Raw text -