Re: pragma to ensure link order
Re: pragma to ensure link order
- Subject: Re: pragma to ensure link order
- From: "Mark Wagner" <email@hidden>
- Date: Fri, 8 Aug 2008 11:53:32 -0700
On Fri, Aug 8, 2008 at 07:55, Fritz Anderson <email@hidden> wrote:
> On 7 Aug 2008, at 4:36 PM, Tor Langballe wrote:
>
>> I have some global variables in a source file that use other global
>> variables in another source file.
>> Since they are dependent on being initialized in the right order, I have
>> to make sure the link order is correct.
>
> The order of the source files in the Compile Sources phase of the target
> controls link order. Drag them into the order you need.
This says nothing about the order the globals are initialized, though.
If you need a specific ordering, you need to explicitly initialize
the variables in code.
--
Mark Wagner
_______________________________________________
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