Jean-Marc Lasgouttes wrote:
> 
> You oculd try to upgrade to gcc 3.2.2, but the release notes do not
> think to indicate that such a bug exist here. I know that lyx 1.3.0
> does not turn off RTTI (the thing that uses typeinfo) anymore, but I
> would work without it. Can you try something like
>   ./configure CXX='g++ -fno-rtti' [other options]
> and see whether it compiles?
> 
> JMarc

Hi Jean-Marc,

First, many thanks for your response.
I tried your suggestion, but this fails at the beginning:

gmake[4]: Entering directory
`/tmp/ferre/lyx-1.3.0/boost/libs/signals/src'
source='connection.cpp' object='connection.lo' libtool=yes \
depfile='.deps/connection.Plo' tmpdepfile='.deps/connection.TPlo' \
depmode=gcc3 /bin/sh ../../../../config/depcomp \
/bin/sh ../../../../libtool --mode=compile g++ -fno-rtti -DHAVE_CONFIG_H
-I. -I. -I../../../../src -I../../../../boost    -O -fno-exceptions -c
-o connection.lo `test -f 'connection.cpp' || echo './'`connection.cpp
g++ -fno-rtti -DHAVE_CONFIG_H -I. -I. -I../../../../src
-I../../../../boost -O -fno-exceptions -c connection.cpp -MT
connection.lo -MD -MP -MF .deps/connection.TPlo
In file included from ../../../../boost/boost/signals/connection.hpp:22,
                 from connection.cpp:18:
../../../../boost/boost/any.hpp: In member function `const
std::type_info& 
   boost::any::type() const':
../../../../boost/boost/any.hpp:73: cannot use typeid with -fno-rtti
../../../../boost/boost/any.hpp: In member function `virtual const 
   std::type_info& boost::any::holder<ValueType>::type() const':
../../../../boost/boost/any.hpp:112: cannot use typeid with -fno-rtti
../../../../boost/boost/any.hpp: In function `ValueType* 
   boost::any_cast(boost::any*)':
../../../../boost/boost/any.hpp:156: cannot use typeid with -fno-rtti

Unfortunatly, I know almost nothing in C++, so I cannot understand
what's going wrong ! However, reading at the g++ man page:
          -fno-rtti
              Disable generation of information about every class with
              virtual functions for use by the C++ runtime type
              identification features (dynamic_cast and typeid).  If
              you don't use those parts of the language, you can save
              some space by using this flag.  Note that exception
              handling uses the same information, but it will generate
              it as needed.

-> Obviously, the -fno-rtti cannot be used.
I begin to think that I will remain at the 1.2 level :-(

Nicolas

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nicolas FERRE' (PhD)
                                 phone/fax : +39-0577-234278
Dipartimento di Chimica
Universita` di Siena             mailto:[EMAIL PROTECTED]
via Aldo Moro
53100 SIENA (Italia)             http://ccmaol1.chim.unisi.it/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to