extern variable in Development
extern variable in Development
- Subject: extern variable in Development
- From: Lorenzo <email@hidden>
- Date: Tue, 26 Dec 2006 19:50:34 +0100
Hi,
In my Main.m file I declare and alloc a global variable
int *gTex;
gTex = (int*)calloc(totTex, sizeof(int));
Then in another file Manager.m I recall it with
extern int *gTex;
While everything works well when I compile as Deployment,
the variable gTex in the file Manager.m is null when I compile as
Development. Also it has a different address &.
So it seems that my Development settings are missing something.
Do you know what?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden