Re: [boost] [Boost-bugs] [ boost-Support Requests-1334003 ] 100s of'template with C linkage' errors

Michael Hopkins wrote:
On 21/10/05 17:26, "Peter Dimov" <pdimov@mmltd.net> wrote:
SourceForge.net 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 michael.hopkins@hopkins-research.com.
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: http://www.pixelglow.com/lists/archive/macstl-dev/2005-February/000015.html 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. http://developer.apple.com/documentation/DeveloperTools/gcc-4.0.0/cpp/System...
participants (1)
-
Peter Dimov