lkml.org 
[lkml]   [1999]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: linux headers and C++
Date
From
barbacha@hinako.ambusiness.com wrote:
>Trying surrounding the includes for the C based header files with
>
>extern "C"
>{
>...
> C header files
>...
>}

The include lines were already surrounded by 'extern "C" { }'. The
following code is also invalid syntax for g++:

extern "C" {
main() {
switch(1) {
case 1:
}
}
}

Ronnie Misra rgmisra@mit.edu
3 Ames Street, Box 152
Cambridge, MA 02142
(617) 225-6365

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.068 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site