Subject: Re: c++ build problem with digikam
To: None <tech-pkg@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-pkg
Date: 02/19/2006 01:47:03
In article <200602191216.19976.mark@mcs.vuw.ac.nz>,
Mark Davies  <mark@mcs.vuw.ac.nz> 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.

christos