[haiku-development] Re: Duplicate headers?

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 30 Aug 2014 11:28:15 +0200

On 30.08.2014 08:18, James Leone wrote:
"Based on the order of include directory listing on the command line and
whether there was a bsd/ in the include directive."

So because the output from gcc -v has:
.../posix
.../bsd

Yes, if that is the order, headers with the same name in "bsd" will be ignored. IOW that is the wrong order. According to the sources it is, however, not the order in which the standard include search paths are built into the compilers [1,2].

I don't have access to a current Haiku ATM. If you see this include search path order with a stock gcc invocation (i.e. if you aren't manipulating the paths yourself), please file a ticket.

CU, Ingo

[1] http://cgit.haiku-os.org/buildtools/tree/gcc/gcc/config/haiku.h?id=862b5480a92d92516e08cfebd62fcb1c85a18b0a#n115 [2] http://cgit.haiku-os.org/buildtools/tree/legacy/gcc/gcc/config/i386/haiku.h#n394


Other related posts: