Good evning,

Angus Leeming skrev detta om Re: Lyx will not link on MacOsX
10.2 - can't find libjpeg:
> 
> it seems that the only 
> undefined symbol left to resolve is 
> boost::detail::crc_table_t<>::table_.
> 
> This comes from src/support/lyxsum.C. It may be that your 
> compiler has been confused by the earlier errors and that
>       touch src/support/lyxsum.C
>       make
> cures your problems.

no it did not solve the problem but I looked into the code -
I usualy work in C so im not used to C++ and I'm not that
skilled programer. Hope that dosent disturb (and excuse my
english). I think i found the header in the file
boost/boost/crc.hpp (content at end of mail) - but i dont
find the code.

Looking at the coments it seems to be from the boost
library. This makes me consither if Lyx has a not mentioned
dependency on this boost library - or that its included
somewhere in the source - i dont know where - and that I
have to link to its objectcode in the linking.

Rember that MacOsX 10.2/Darwin is based on FreeBSD and
gcc-3.1 compiler. I am just learning this envirement - but
usualy almost evrything but the compiler have to be ported
to get GNU programs to work. I am consithering to compile
lyx on my linux machine - just to see if i get the same
behavior. Should there bee a -lboost switch?

I can download and compile boost - but should that bee
right?

Greetings

Keeron


>------snipp---------(crc.hpp line 451)-------<
    // CRC table generator
    template < std::size_t Bits, BOOST_CRC_PARM_TYPE
TruncPoly, bool Reflect >
    struct crc_table_t
    {
        BOOST_STATIC_CONSTANT( std::size_t, byte_combos =
(1ul << CHAR_BIT) );

        typedef mask_uint_t<Bits>            masking_type;
        typedef typename masking_type::fast  value_type;
        typedef value_type                   table_type[
byte_combos ];

        static  void  init_table();

        static  table_type  table_;

    };  // boost::detail::crc_table_t

    // CRC table generator static data member definition
    // (Some compilers [Borland C++] require the initializer
to be present.)
    template < std::size_t Bits, BOOST_CRC_PARM_TYPE
TruncPoly, bool Reflect >
    typename crc_table_t<Bits, TruncPoly,
Reflect>::table_type
    crc_table_t<Bits, TruncPoly, Reflect>::table_
     = { 0 };






+-------------------------------------------------------+
|Keeron Ögren, Stömne Anneberg, 671 95 KLÄSSBOL, SWEDEN |
|Pnr:+46(0)570-463056 Cell:+46(0)70-6799557 ICQ#58298387|
+-------------------------------------------------------+

Reply via email to