Mail Archives: djgpp/2000/05/01/05:10:14
On Sun, 30 Apr 2000, Durrenbach Alban wrote:
> In the Vergo package, I find a makefile : makefile.djg. So I think
> that this package is supported by djgpp. (more closely DOS DJGPP
> Version 2.0 (gcc version 2.7.2) ).
This is a very old version, both of DJGPP and of the compiler. Expect
quite a few problems, especially in the C++ part.
> In file included from adnode.cc:6:
> interval.h: In function `class interval operator *(double, const interval &)':
> interval.h:126: initialization of non-const reference type `class interval &'
> interval.h:126: from rvalue of type `interval'
> interval.h:82: in passing argument 1 of `interval::interval(interval &)'
> adnode.cc: In function `class interval eval(const intvector &, int)':
> adnode.cc:405: initialization of non-const reference type `class interval &'
> adnode.cc:405: from rvalue of type `interval'
[snip]
> Can you help me please ?
What kind of help do you expect? The compiler messages are quite
clear, I think: something is wrong with how adnode.cc uses the
interval class declared in interval.h. What needs to be done is to
look at the lines whose numbers are printed by the compiler and figure
out what is wrong there. Then correct what needs to be corrected,
probably in adnode.cc.
If you cannot figure out what the problems are, you should at least
post the relevant portion(s) of adnode.cc and interval.h, so people
here could look at the offending code.
- Raw text -