site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Godfrey On Oct 11, , at 8:21, stephane sudre wrote: On Oct 11, 2004, at 5:13 PM, Brian Bergstrand wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stephane, Are you assigning an initial value to the var definition in your.c file? If not, then the compiler will treat the definition as a declaration, and no storage will be allocated. .h __private_extern__ int foo; .c __private_extern__ int foo = 0; // Allocate storage for foo. Thanks. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/gvdl%40apple.com This email sent to gvdl@apple.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... One other thing to note, __private_extern__ does not work for C++ files and headers. That's definitely my case (no initial value). I would never have suspected this. This email sent to site_archiver@lists.apple.com
participants (1)
-
Godfrey van der Linden