Subject: Re: compiler issues C/C++ linkage
To: Tom <>
From: Martin Husemann <>
List: netbsd-users
Date: 12/20/2005 15:40:18
On Tue, Dec 20, 2005 at 03:21:10PM +0100, Tom wrote:
> Some google hits say, that the compiler does not surround the c-header with 
> extern "C" {
> }

The NetBSD header files have __BEGIN_DECLS / __END_DECLS macros to do
exactly this when used with a C++ compiler.

What you see sounds more like some C++ file is used within an extern "C"
scope - i.e. exactly the opposite.

If you could show us a small sample program that causes this problem, we
could check wether it's a problem in the application or a bug in the
installed headers.