site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com -----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. HTH. On Oct 11, 2004, at 10:04 AM, stephane sudre wrote:
What could be the explanation for a __private_extern__ "local global" var not being seen as defined?
I have a local global var being defined as a __private_extern__ (both in the .h and .c)
When I try to load the Kernel Extension using kextload, I'm being told the var is not defined.
The problem I have to understand the reason behind this is that I have other vars defined the same way which are seen as being defined.
Any clue?
Brian Bergstrand <http://www.bergstrand.org/brian/>, AIM: triryche206 PGP Key: <http://www.bergstrand.org/brian/misc/public_key.txt> reality (n.) 1. The illusion resulting from lack of alcohol. As of 10:09:55 AM, iTunes is playing "Burning Man" from "Q2K" by "Queensrÿche" -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQWqU+HnR2Fu2x7aiEQIatgCgnBJYJQ8aOinQeZkCmJmZdbWlqCYAoLVb L/dSCZ7QyeyEOeXC1P6hrYRz =ggpF -----END PGP SIGNATURE----- _______________________________________________ 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... This email sent to site_archiver@lists.apple.com