public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* PROBLEM: please remove reserved word "new" from kernel headers
@ 2005-07-06  9:26 Rob Prowel
  2005-07-06 12:56 ` Jurriaan on adsl-gate
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Rob Prowel @ 2005-07-06  9:26 UTC (permalink / raw)
  To: linux-kernel

[1.] One line summary of the problem:    

2.4 and 2.6 kernel headers use c++ reserved word "new"
as identifier in function prototypes.

[2.] Full description of the problem/report:

When kernel headers are included in compilation of c++
programs the compile fails because some header files
use "new" in a way that is illegal for c++.  This
shows up when compiling mySQL under linux 2.6.  It
uses $KERNELSOURCE/include/asm-i386/system.h.


[3.] Keywords (i.e., modules, networking, kernel):

new, c++, kernel headers

[4.] Kernel version (from /proc/version):

2.4 and 2.6


While not an error, per se, it is kind of sloppy and
it is amazing that it hasn't shown up before now. 
using the identifier "new" in kernel headers that are
visible to applications programs is a bad idea.

Thanks,
Rob Prowel





		
____________________________________________________
Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-07-07  0:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-06  9:26 PROBLEM: please remove reserved word "new" from kernel headers Rob Prowel
2005-07-06 12:56 ` Jurriaan on adsl-gate
2005-07-06 12:58 ` Jesper Juhl
2005-07-06 13:06 ` Alexey Dobriyan
2005-07-06 18:08   ` Richard B. Johnson
2005-07-06 13:14 ` David Woodhouse
2005-07-06 14:05 ` Jakob Oestergaard
2005-07-06 14:43 ` Michal Schmidt
2005-07-06 15:35 ` Schneelocke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox