• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
C++ Headers in /usr/include
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C++ Headers in /usr/include


  • Subject: C++ Headers in /usr/include
  • From: Trenton Schulz <email@hidden>
  • Date: Fri, 17 Feb 2006 12:11:28 +0100

Hi folks,

I have some C++ headers that I've manually installed in /usr/include/ Blah to make them fairly easy to access. Why I'm doing this is NOT important at the moment. However, it seems when I include these headers in a source file I get some interesting errors like this:

error: template specialization with C linkage
error: template with C linkage

There are at least three ways I've found to solve this problem and make things compile OK.

* If I move the headers out of /usr/include and update my include path
* If I preprocess the file and comment out all the "# XX" references
* If I put 'extern "C++"' around the class definitions in the include files.


I guess I'm wondering why having the headers in /usr/include/Blah causes this error when moving them makes them work fine or why I have to protect them if they are under /usr/include. Also is extern C++ standard or should I protect this as well?

I'm just a little confused and curious :)

Thanks in advance,

--
Trenton Schulz
Trolltech AS

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: C++ Headers in /usr/include
      • From: Rush Manbert <email@hidden>
  • Prev by Date: ZeroLink ld problem
  • Next by Date: [FEATURE] Tooltip if point <multiple Values> in Settings Window
  • Previous by thread: Re: ZeroLink ld problem
  • Next by thread: Re: C++ Headers in /usr/include
  • Index(es):
    • Date
    • Thread