• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
extern variable in Development
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: storing retrieveing Uint64 data
  • Next by Date: MySQL and Cocoa - looking for samples, kits, docs, etc
  • Previous by thread: Re: storing retrieveing Uint64 data
  • Next by thread: MySQL and Cocoa - looking for samples, kits, docs, etc
  • Index(es):
    • Date
    • Thread