Re: Moving from CodeWarrior PreProcessor problem
Re: Moving from CodeWarrior PreProcessor problem
- Subject: Re: Moving from CodeWarrior PreProcessor problem
- From: Steve Checkoway <email@hidden>
- Date: Thu, 28 Jun 2007 14:33:02 -0700
On Jun 28, 2007, at 10:43 AM, Doug Neale wrote: It looks like the PreProcessor in Xcode doesn't actually treat the result of the #includes as a single file with everything in scope, as all references to global variables in the header file cause a 'not declared in this scope' error.
That's not true.
steve$ cat foo This is foo, I am including bar #include "bar" We are back in foo. steve$ cat bar This is bar. steve$ cpp foo # 1 "foo" # 1 "<built-in>" # 1 "<command line>" # 1 "foo" This is foo, I am including bar
# 1 "bar" 1 This is bar. # 3 "foo" 2 We are back in foo. Apart from adding file/line markers, it puts it all into a single file. I have the build setting 'Scan all Source files for Includes' checked, but is there something else that I have missed which is causing this problem?
I'm not sure what this does exactly, but it isn't required for files to be included.
You will have to be more specific about what is not working. |
_______________________________________________
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