site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Oct 19, 2009, at 1:18 AM, rohan a wrote: There are a set of global variables used. When these are not initialized I get the linking error : Undefined symbols —Jens _______________________________________________ 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... What do you mean by "not initialized"? If you have a definition of the variable, just with no value: int gFoo; then the link error is definitely unexpected. (Is that source file in your target?) But if you don't have any non-extern declaration of the variable, then the linker is correct. Extern declarations are just a promise that you will actually define the variable somewhere else. This email sent to site_archiver@lists.apple.com