Subject: Re: c++ build problem with digikam
To: Mark Davies <mark@mcs.vuw.ac.nz>
From: Christos Zoulas <christos@zoulas.com>
List: tech-pkg
Date: 02/19/2006 03:07:08
On Feb 19,  8:37pm, mark@mcs.vuw.ac.nz (Mark Davies) wrote:
-- Subject: Re: c++ build problem with digikam

| On Sunday 19 February 2006 17:42, Christos Zoulas wrote:
| > I wrote:
| > | OK, I simply copied what was in tha actual digikam source file that had
| > | the problem, however removing the extern "C" doesn't make any difference
| > | to the actual problem reported: still get the invalid conversion errors.
| >
| > It is probably doing the same extern "C" crap in multiple places.
| 
| except that I reproduce the error with just the 8 line source file consisting 
| of only those includes.  In fact I can reduce the foo.cpp down to:
| 
| -----
| #include <tiffio.h>
| #include <iostream>
| ----
| and get:

Yes, /usr/include headers are special when included from c++...
If you include <unistd.h> and <stdlib.h> before including <tiffio.h>
should work. I h@e c++.

christos