* [devel] Странное предупреждение нового gcc
@ 2002-10-13 10:22 Igor Tertishny
2002-10-13 8:37 ` Alexey Voinov
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Igor Tertishny @ 2002-10-13 10:22 UTC (permalink / raw)
To: devel
Здравствуйте, собратья по пингвину!
Кто бы мне подсказал, что за странное предупреждение стало выходить при
компиляции буквально после каждого файла. Имеется в виду gcc-3.2.причем, та
же история хоть в ALT Linux, хоть в RedHat 8.0. Просто интересно знать, жить
оно не мешает, все компалится, но все таки:
/usr/include/c++/3.2.1/backward/backward_warning.h:32:2: warning: #warning
This file includes at least one deprecated or antiquated header. Please
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Странное предупреждение нового gcc
2002-10-13 10:22 [devel] Странное предупреждение нового gcc Igor Tertishny
@ 2002-10-13 8:37 ` Alexey Voinov
2002-10-13 8:43 ` Sergey Vlasov
2002-10-13 13:15 ` Vitaly Lugovsky
2 siblings, 0 replies; 7+ messages in thread
From: Alexey Voinov @ 2002-10-13 8:37 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 1168 bytes --]
Igor Tertishny wrote
> Здравствуйте, собратья по пингвину!
>
> Кто бы мне подсказал, что за странное предупреждение стало выходить при
> компиляции буквально после каждого файла. Имеется в виду gcc-3.2.причем, та
> же история хоть в ALT Linux, хоть в RedHat 8.0. Просто интересно знать, жить
> оно не мешает, все компалится, но все таки:
>
> /usr/include/c++/3.2.1/backward/backward_warning.h:32:2: warning: #warning
> This file includes at least one deprecated or antiquated header. Please
> 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.
компилируемая программа пользуется устарешим загловочным файлом
strstream.h.
лучше пользоваться стандартным sstream.
--
Best Regards! | Когда вам платят за работу, надо по крайней мере
Alexey Voinov | делать вид, что вы работаете...
| Б.Виан "Осень в Пекине"
voins@voins.program.ru
voins@online.ru
vns@altlinux.ru
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Странное предупреждение нового gcc
2002-10-13 10:22 [devel] Странное предупреждение нового gcc Igor Tertishny
2002-10-13 8:37 ` Alexey Voinov
@ 2002-10-13 8:43 ` Sergey Vlasov
2002-10-13 13:15 ` Vitaly Lugovsky
2 siblings, 0 replies; 7+ messages in thread
From: Sergey Vlasov @ 2002-10-13 8:43 UTC (permalink / raw)
To: devel
On Sun, 13 Oct 2002 10:22:33 +0000
Igor Tertishny <ilar@altlinux.ru> wrote:
> /usr/include/c++/3.2.1/backward/backward_warning.h:32:2: warning: #warning
> This file includes at least one deprecated or antiquated header.
Написано же на чистом английском языке: подключаются какие-то устаревшие
заголовки (использовавшиеся до принятия стандарта ISO/IEC 14882:1998).
Какие - должно быть видно из предыдущих строк (included from...).
> Please 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.
Собственно, здесь и написано, что делать: рекомендуется привести
программу в соответствие со стандартом C++ (например, вместо
использования устаревшего #include <iostream.h> пользоваться новым
#include <iostream>). Хотя работы тут может быть довольно много.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Странное предупреждение нового gcc
2002-10-13 10:22 [devel] Странное предупреждение нового gcc Igor Tertishny
2002-10-13 8:37 ` Alexey Voinov
2002-10-13 8:43 ` Sergey Vlasov
@ 2002-10-13 13:15 ` Vitaly Lugovsky
2002-10-13 23:30 ` Igor Tertishny
2 siblings, 1 reply; 7+ messages in thread
From: Vitaly Lugovsky @ 2002-10-13 13:15 UTC (permalink / raw)
To: devel
On Sun, 13 Oct 2002, Igor Tertishny wrote:
> /usr/include/c++/3.2.1/backward/backward_warning.h:32:2: warning: #warning
> This file includes at least one deprecated or antiquated header. Please
> 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.
Какое из этих слов перевести? IMHO, тут и prompt справился бы...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Странное предупреждение нового gcc
2002-10-13 13:15 ` Vitaly Lugovsky
@ 2002-10-13 23:30 ` Igor Tertishny
2002-10-13 23:09 ` Vitaly Lugovsky
2002-10-14 13:13 ` Alexey Morozov
0 siblings, 2 replies; 7+ messages in thread
From: Igor Tertishny @ 2002-10-13 23:30 UTC (permalink / raw)
To: devel
>
> Какое из этих слов перевести? IMHO, тут и prompt справился бы...
>
Смысл-то понятен. Вот только что это, каждое упоминание в старого
заголовочного файла в каждом файле на новый менять? Шизануться ведь можно...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Странное предупреждение нового gcc
2002-10-13 23:30 ` Igor Tertishny
@ 2002-10-13 23:09 ` Vitaly Lugovsky
2002-10-14 13:13 ` Alexey Morozov
1 sibling, 0 replies; 7+ messages in thread
From: Vitaly Lugovsky @ 2002-10-13 23:09 UTC (permalink / raw)
To: devel
On Sun, 13 Oct 2002, Igor Tertishny wrote:
> > Какое из этих слов перевести? IMHO, тут и prompt справился бы...
> >
> Смысл-то понятен. Вот только что это, каждое упоминание в старого
> заголовочного файла в каждом файле на новый менять? Шизануться ведь можно...
Не надо шизаться. На то есть sed, пусть он шизанётся.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [devel] Странное предупреждение нового gcc
2002-10-13 23:30 ` Igor Tertishny
2002-10-13 23:09 ` Vitaly Lugovsky
@ 2002-10-14 13:13 ` Alexey Morozov
1 sibling, 0 replies; 7+ messages in thread
From: Alexey Morozov @ 2002-10-14 13:13 UTC (permalink / raw)
To: devel
On Sun, Oct 13, 2002 at 11:30:20PM +0000, Igor Tertishny wrote:
> > Какое из этих слов перевести? IMHO, тут и prompt справился бы...
> Смысл-то понятен. Вот только что это, каждое упоминание в старого
> заголовочного файла в каждом файле на новый менять? Шизануться ведь можно...
Привет авторам стандарта C++ :-)
В конце концов, можно задавить этот варнинг, но тогда есть опасность, что
в один прекрансый день/на каком-либо еще компиляторе это просто не станет
собираться.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-10-14 13:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-13 10:22 [devel] Странное предупреждение нового gcc Igor Tertishny
2002-10-13 8:37 ` Alexey Voinov
2002-10-13 8:43 ` Sergey Vlasov
2002-10-13 13:15 ` Vitaly Lugovsky
2002-10-13 23:30 ` Igor Tertishny
2002-10-13 23:09 ` Vitaly Lugovsky
2002-10-14 13:13 ` Alexey Morozov
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git