Re: PCH not being used
Re: PCH not being used
- Subject: Re: PCH not being used
- From: Burt Johnson <email@hidden>
- Date: Sun, 22 Jan 2006 19:23:33 -0800
>On Jan 22, 2006, at 12:38 PM, Burt Johnson wrote:
>
>> I added typedef for those items into 'FitSync_Prefix.pch' (the file
>> was
>> created by the wizard). Tried to build again... and the same
>> problems are
>> reported? Looks like the pch is not being used. I thought the wizard
>> would have made all the necessary link ups.
>
>It does.
>
>Just out of curiosity, did you put the declarations within the #ifdef
>__OBJC__/#endif block in the generated .pch file? And then try to
>use those definitions when compiling a C or C++ source file (rather
>than an Objective-C or Objective-C++ source file)?
Yes to the first part. No to the second. The files are '.m' files, though
the contents are actually VC++ that I am porting.
As I understand it, the file name is what cues XCode to treat it as an ObjC
file, which would therefore define the __OBJ__ constant. Is that correct?
--
- Burt Johnson
MindStorm, Inc.
email@hidden
http://www.mindstorm-inc.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden