ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Снова проблема с ядерными хидерами в хашере
Date: Thu, 10 Jun 2004 14:20:07 +0400
Message-ID: <20040610102007.GA3437@sirius.home> (raw)
In-Reply-To: <20040610093935.GD3304@altlinux.ru>

[-- Attachment #1: Type: text/plain, Size: 2103 bytes --]

On Thu, Jun 10, 2004 at 01:39:35PM +0400, Alexey Voinov wrote:
> Igor Tertishny wrote
> > > Значит приведены не все сообщения. В том фрагменте нет ни одного сообщения
> > > об ошибке в /usr/include/linux/cdrom.h
> > 
> > CdboDialogBase.cpp:49: warning: base `KDialog' will be initialized after
> > CdboDialogBase.cpp:49: warning:   base `DCOPObject'
> > CdboDialogBase.cpp:49: warning:   when initialized here
> > In file included from /usr/include/linux/byteorder/little_endian.h:11,
> >                  from /usr/include/asm/byteorder.h:65,
> >                  from /usr/include/linux/cdrom.h:14,
> >                  from CdboCDRom.cpp:34,
> >                  from libcdboshared_la.all_cpp.cpp:4:
> > /usr/include/linux/byteorder/swab.h: In function `const __u32 __fswab24
> > (unsigned int)':
> > /usr/include/linux/byteorder/swab.h:174: error: ISO C++ forbids braced-groups 
> > within expressions
> > /usr/include/linux/byteorder/swab.h:174: error: ISO C++ forbids braced-groups 
> > within expressions
> > /usr/include/linux/byteorder/swab.h: In function `__u32 __swab24p(__u32*)':
> > /usr/include/linux/byteorder/swab.h:178: error: ISO C++ forbids braced-groups 
> > within expressions
> > /usr/include/linux/byteorder/swab.h:178: error: ISO C++ forbids braced-groups 
> > within expressions
> > /usr/include/linux/byteorder/swab.h: In function `void __swab24s(__u32*)':
> > /usr/include/linux/byteorder/swab.h:182: error: ISO C++ forbids braced-groups 
> > within expressions
> > 
> > Точнее, ошибки касаются /usr/include/linux/byteorder/swab.h, на который 
> > ссылается cdrom.h
> Вот. Совсем другое дело. Объясняю:
> в файле /usr/include/linux/byteorder/swab.h используются конструкции C99,
> которые не являются частью стандарта C++98. Все знают, что kernel-headers
> не совместимы с языками отличными от C. Это нормально. Все включения
> kernel-headers надо выносить в отдельные файлы на языке C. Использовать
> их напрямую в C++ нельзя.

Да нормально они в C++ подключаются.  Только не надо использовать
опции компилятора -ansi, -pedantic и т.п.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2004-06-10 10:20 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-10  8:51 Igor Tertishny
2004-06-10  9:00 ` Alexey Voinov
2004-06-10  9:09   ` Igor Tertishny
2004-06-10  9:21     ` Alexey Voinov
2004-06-10  9:30       ` Igor Tertishny
2004-06-10  9:39         ` Alexey Voinov
2004-06-10  9:42           ` Alexey Voinov
2004-06-10  9:54             ` Igor Tertishny
2004-06-10 11:38             ` Igor Tertishny
2004-06-10 11:45               ` Yuri N. Sedunov
2004-06-10 11:52                 ` Igor Tertishny
2004-06-10 15:31                   ` Yuri N. Sedunov
2004-06-11  7:03                     ` Igor Tertishny
2004-06-10 18:20                   ` Vitaly Lipatov
2004-06-11  7:05                     ` Igor Tertishny
2004-06-11 10:22                       ` [devel] Снова проблема с ядерными хидерами в хашере [JT] Vitaly Lipatov
2004-06-10 10:20           ` Sergey Vlasov [this message]
2004-06-10 10:51             ` [devel] Снова проблема с ядерными хидерами в хашере Igor Tertishny
2004-06-10 12:35               ` Sergey V Turchin
2004-06-11  7:07                 ` Igor Tertishny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040610102007.GA3437@sirius.home \
    --to=vsu@altlinux.ru \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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