Opened 17 years ago

Closed 17 years ago

#496 closed Support Requests (Fixed)

100s of 'template with C linkage' errors

Reported by: nobody Owned by: Peter Dimov
Milestone: Component: smart_ptr
Version: None Severity:
Keywords: Cc:

Description

Hi

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 michael.hopkins@hopkins-research.com.  

Many thanks

Michael

Change History (2)

comment:1 by Peter Dimov, 17 years ago

Logged In: YES 
user_id=305912

Apparently caused by a tendency of Darwin's GCC to treat
system headers as extern "C" based on a heuristic. Triggered
by putting the Boost headers in /usr/include, as described here:

http://www.pixelglow.com/lists/archive/macstl-dev/2005-February/000015.html

comment:2 by Peter Dimov, 17 years ago

Status: assignedclosed
Note: See TracTickets for help on using tickets.