Re: linux headers and C++

Ronnie G Misra (rgmisra@mit.edu)
Thu, 01 Jul 1999 17:50:13 EDT


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/