lkml.org 
[lkml]   [2005]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPROBLEM: please remove reserved word "new" from kernel headers
[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/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-07-06 14:39    [W:0.076 / U:2.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site