Subject: Re: c++ build problem with digikam
To: None <>
From: Christos Zoulas <>
List: tech-pkg
Date: 02/19/2006 01:47:03
In article <>,
Mark Davies  <> wrote:
>Trying to build the latest digikam on NetBSD-current I hit the problem 
>demonstrated below
>For file foo.cpp:
>------ cut here ------
>// Lib Tiff includes.
>extern "C"
>#include <tiffio.h>
>#include <sys/types.h>
>#include <sys/stat.h>
>#include <unistd.h>
>// C++ includes.
>#include <cmath>
>#include <cstdio>
>#include <cstdlib>
>#include <iostream>
>------ cut here ------
>trying to compile produces the following error:

It is wrong to extern "C" the above headers. All four headers were designed
for c++ use and work just fine without it.