C++ Headers in /usr/include
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