Shaperd-0.2.1, Slackware9, problem pri kompilaci

Pavel Kankovsky peak na argo.troja.mff.cuni.cz
Čtvrtek Červenec 17 13:33:44 CEST 2003


On Thu, 17 Jul 2003 linuxkonference na centrum.cz wrote:

> root na darkstar:/zaloha/shaperd-0.2.1/src# gmake with_ipq=yes
> gcc -MM log.c >log.d
> g++ -I/usr/src/linux/include -DWITH_IPQ -MM sched.cpp >sched.d
> In file included from /usr/include/c++/3.2.2/backward/list.h:59,
>                  from bwadm.hpp:5,
>                  from sched.hpp:5,
>                  from sched.cpp:2:
> /usr/include/c++/3.2.2/backward/backward_warning.h:32:2: warning:
> #warning This file includes at least one deprecated or antiquated
> header. Pl
> ease consider using one of the 32 headers found in section 17.4.1.2 of
> the C++ standard. Examples include substituting the <X> header for the
> <X.h> header for C++ includes, or <sstream> instead of the deprecated
> header <strstream.h>. To disable this warning use -Wno-deprecated.

Tomuto snad rozumite, ne?

> bwadm.cpp:23: default argument given for parameter 2 of `int
>    bwadm::add_class(int, int = 0)'
> bwadm.hpp:27: after previous specification in `int
> bwadm::add_class(int, int =
>    0)'
> gmake: *** [bwadm.o] Error 1

Prekladaci se asi nelibi, ze mate default hodnotu argumentu zminene metody
uvedenou na dvou ruznych mistech. Ta hodnota je zjevne stejna, a tudiz je
to principialne neskodne. Pokud ve standardu C++ najdete, ze je takova vec
povolena, tak to muzete zahlasit jako chybu v GCC (maximalne by to mel byt
warning a ne error), nicmene to nic nemeni na tom, ze ten, kdo takovou vec
naprogramoval, by potreboval mensi attitude adjustment.

--Pavel Kankovsky aka Peak  [ Boycott Microsoft--http://www.vcnet.com/bms ]
"Resistance is futile. Open your source code and prepare for assimilation."



Další informace o konferenci Linux