Re: iOS v OSX Compile
Re: iOS v OSX Compile
- Subject: Re: iOS v OSX Compile
- From: koko <email@hidden>
- Date: Mon, 20 Aug 2012 15:05:22 -0600
On Aug 20, 2012, at 2:46 PM, Mark Wagner wrote:
> On Mon, Aug 20, 2012 at 12:46 PM, koko <email@hidden> wrote:
>> I added an iOS Target to an existing project that had only OSX Targets.
>>
>> The OSX Target build just fine.
>>
>> The iOS Target build gives the error:
>>
>> /Volumes/repos/_working/LibBase/_XC44/../_source/BZip.cpp:10:10: fatal
>> error: 'stdafx.h' file not found
>> #include <stdafx.h>
>>
>>
>> Does iOS not like < >?
>
> #include <stdafx.h> means "Search the system include-file locations
> for the file 'stdafx.h'".
>
> #include "stdafx.h" means "Search the user-defined locations for the
> file 'stdafx.h', and if that fails, search the system locations".
> This is probably what you want, since "stdafx.h" isn't a system header
> on Mac.
>
> --
> Mark
>
I set [Always Search User Paths] to YES and all is well
We build our libs cross-platform, ergo #include <stdafx.h> for Windows.
On Mac we have a dummy stdafx.h so finding it in user paths is ok.
-koko
_______________________________________________
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