Path: csiph.com!news.redatomik.org!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c Subject: Re: linking precedence rules Date: Sun, 8 Jan 2017 21:20:42 +1300 Lines: 19 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net QaPVlB83bGDmQxK2tNPZ8gkfwXRQgKCfBK4W2XEkj6XmyHJNyL Cancel-Lock: sha1:aIpy0rWNm3KIUNwd/YUvUUEbOyc= User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: Xref: csiph.com comp.lang.c:101279 On 01/ 8/17 08:49 PM, Michael Holiday wrote: > I return to c.l.c with a closer focus on my c-compiling and linking > woes, and would like to state my 2 questions as follows: > > Q1) How does one see the results of the preprocessor? The most common compiler option for this is -E. > Q2) in a standard conforming implementation such as gnu, what rules are > used to sort out precedence with -I inclusion tags? > > Specifically, if winbase.h is in 2 consecutive paths, which one is to be > included, the former or latter? That is a detail left to the implementation, the compiler documentation is the best place to look. -- Ian