> Andr� sent me a diff of what he had to do to compile lyx 1.1 with the
> older gcc 2.7.x. 

Since it's public now, I might as well comment on it a bit ;-)

Generally I think it would be a good idea if LyX could be compiled
with gcc-2.7.2 since this seems to be some kind of de-facto standard.

The current development version does not compile, since gcc-2.7.2 does
not support a couple of features:

1. Name spaces (or at least std::) are broken. The only code that uses it
is the encoding stuff. It compiles quite well after a 

   perl -pi -e "s/std:://g"

in this dir. I don't have a clue if removing this breaks something (I
doubt it), but there should be a way using #defines do hide this from
gcc-2.7

2. The <algorithm> stuff used in DepTable does not work. I don't think
it is really necessary there anyway and a simple loop will probably
suffice.

3. Problems with operator declarations in wrap_string. There is a
constructor of a wrap_string out of " wrap_string<S>::value_type const *" 
anyway, so the "offending" operators could be removed. This could mean
that an additional intermediate object is created but as I told JM
already I am fairly sure that this won't occur when using -O2.

4. --with-included-string probably has to be used when. 

So I don't think it's too much effort to stay gcc-2.7 compatible.


Andre'

PS: The patch is not to be considered as a "real patch to be included
in the source tree", but rather as a pointer to interesting places.
We probably need some kind of check for gcc-2.7 when running configure
but all this autoconf/automake stuff is clearly beyond me ... 


--
Andre' Poenitz, TU Chemnitz, Fakultaet fuer Mathematik
[EMAIL PROTECTED] ... +49 3727 58 1381

Reply via email to