Re: getting undefined symbol when I do not initialize global variable
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type; bh=T6wdevp3PFqtDcTdUfp87xOssBnEzf9dTjYTOPPa364=; b=i7UDUL6f1WNgDOd8SgFEUD9m3j9bgF/23ElWWlLB0AwH4+Xa2ybJkzo61DRnAM12SP TEfVk6HI4pSUKZVkAtvle7YFypRKg42D/nQuBWvV6zK177o/Kik5lfszlMsMDOJJd6vJ 2tQ8givzAALn3wXPxELFWc9a+vFXuxlaGiCNs= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=KaghfApmo3Ap9fkzqMBO9nay7y38JqJ8Ii+2TXv/qe44P9yLQyT4PvKGOfz9Fy1BSy MbGviP0BKxpi1doGDnkeD02ILhWDykWFnvOjZHpRSm3m2OIl5QMK6MsENKASjolAkaPh y3eF2hZ43sg2vYiHyMywFe/9+kSxEZ21n1H0Y= If I had to guess, I'd say you have some combination of extern symbols declared in a header that aren't defined in an implementation, and when you initialize the variables, the compiler ignores the 'extern.' I wouldn't be surprised if you were getting a related compiler warning somewhere...? Standard debug tactics apply, though: whittle down your project to the smallest amount possible while still displaying the problem. If that process itself doesn't illuminate the issue, post the example project. It's hard (for me, at least) to say why this might be happening without seeing some example code. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Dave Keck