Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-10-21 15:44:26

Michael Hopkins wrote:
> On 21/10/05 17:26, "Peter Dimov" <pdimov_at_[hidden]> wrote:
>> wrote:
>>>> I am trying Boost 1.33 on Mac OS X 10.4.2 with XCode
>>>> 2.1 and compiling the smart pointer test program. I
>>>> get hundreds of "error: template with C linkage" errors
>>>> within many of the gcc includes. This happens whether
>>>> I am using gcc 3.3 or 4.0.
>>>> More detail available if necessary - please contact me
>>>> on
>> Yes, I think that we do need more detail, but first please make sure
>> that you are compiling as C++ and not as C. :-)
> Peter
> I can see why you would think I was doing that, but I¹m sharing a
> project directory with all my C++ code and the compiler output
> certainly looks like C++. I suspect that something within the Boost
> headers is making the compiler Othink in C rather than C++¹.
> I have attached the smart pointer test program and the full compiler
> output from XCode when I try to build using Apple GCC4.0 and Apple
> GCC3.3. There is a lot of info here so I have zipped them.
> I completely cleaned the projects before I started the builds. I
> thought that maybe some combination of the compiler settings is
> causing the problem but the same issue occurs whether I use the
> ODevelopment¹ or ODeployment¹ settings which are very different.
> Let me know if you need anything else.

I have no access to Mac OS X, but according to this post:

this might be caused by the fact that your Boost headers are in
/usr/include, because GCC has some heuristic that automatically encloses
system headers in extern "C" blocks.

Boost list run by bdawes at, gregod at, cpdaniel at, john at