Re: OSX Porting Problems

Ingo Weinhold <bonefish-CFLBMwTPW48UNGrzBIF7/[email protected]> Wed, 14 Mar 2007 01:04:49 +0100
Newsgroups gmane.os.openbeos.kernel.devel
Message-ID <[email protected]>
On 2007-03-14 at 00:02:07 [+0100], Morgan Howe <[email protected]> wrote:
[...]
> 
> Well after looking at the preprocessor output, I noticed the flags:
> # 11 "headers/private/kernel/util/DoublyLinkedList.h" 2 3 4
> with them meaning:
> 3: System Header
> 4: Requires extern "C" protection
> 
> This appears to be because any include found in a directory specified to g++
> with -idirafter is assumed to be a system header, and any system header is
> implicitly enclosed in an extern "C" block.

You apparently use a "very old system" then:

	http://gcc.gnu.org/onlinedocs/cpp/System-Headers.html

:-)

> Changing -idirafter to -I on
> line 245 of HelperRules seems to solve this problem,

OK, sounds like a good solution.

CU, Ingo

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV