On Tue, 12 Sep 2000, Amir Karger wrote:
> OK, so I finally downloaded gcc-2.95.2, so that I could compile the new LyX.
> I assume someone has noted in the requirements that 2.95 no longer works?
Hint: assume nothing.
> Anyway, I got like 8 million of these:
>
> -------------
> In file included from
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/map:31,
> from ../../src/language.h:19,
> from ../../src/lyxfont.h:22,
> from lyxinset.h:23,
> from insetcollapsable.h:20,
> from insetcollapsable.C:17:
> /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/stl_tree.h:
> In function `int __black_count(_Rb_tree_node_base *, _Rb_tree_node_base *)':
>
>/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/stl_tree.h:1258:
> warning: can't inline call to `int __black_count(_Rb_tree_node_base *,
> _Rb_tree_node_base *)'
>
>/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/stl_tree.h:1266:
> warning: called from here
> -------------
>
> I assume this is a 2.95.2 thing, not you, since it's coming from the gcc
> stuff. Still, is it there for a reason?
You missed out the important part: the compilation flags. You'll see that
Lars has set the -Winline flag which is generating all these messages
since gcc can't inline that particular function. IIRC the function in
question is a one-liner but that's not important.
> Why does nearly every file compilation get this?
That just shows how many files are dependent upon the use of maps and
other tree based STL containers.
Allan. (ARRae)