From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <3451faeb5a5ae292da87b275fd80bcd1@terzarima.net> References: <3451faeb5a5ae292da87b275fd80bcd1@terzarima.net> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Kim Shrier Subject: Re: [9fans] trouble with include order using c compiler with ansi Date: Sun, 10 Jun 2007 11:44:27 -0600 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Topicbox-Message-UUID: 7c3492a0-ead2-11e9-9d60-3106f5b1d025 On Jun 10, 2007, at 11:27 AM, Charles Forsyth wrote: >> Any enlightenment would be appreciated. > > cpp doesn't understand -. > Yes, the reason I put -. in CFLAGS is because it is a parameter to the C compiler. However, I have tried it with and without -. and with and without -N. I have also tried the following command: cpp -N ../main.c It correctly does not find any of the include files. But, if I try: cpp -N -I/sys/include -I/386/include ../main.c It finds all of the include files. It should not be finding inc1.h or inc2.h if I read the man page correctly. It finds both of these files in .. This seems like a bug to me. Kim