Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode 2.1 problem with static variables



Hello,

In recompiling some C and Objective-C / Cocoa code using the new Xcode version 2.1 I've encountered a problem. Things run fine with version 2.0 of Xcode, but with version 2.1 I'm getting runtime errors involving (only) static variables. One static variable appears in the function "ran1" from Numerical Recipes; static variables also serve as a hack for class fields in Objective-C objects -- but in both instances the code compiles fine, but crashes when run. (The code runs when the static variables are removed.)

Has anyone else encountered this problem? (I'm only targeting PPC processors, not developing on the new Intel boxes.)

    Thanks,
        Brad Marston

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.