• 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
Re: Newbie Question - #include scope -- Thanks!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie Question - #include scope -- Thanks!


  • Subject: Re: Newbie Question - #include scope -- Thanks!
  • From: "Roni Music" <email@hidden>
  • Date: Sat, 13 Dec 2008 21:36:41 +0100



On Dec 10, 2008, at 11:44 A, Jeremy Pereira wrote:
To make this work, you should

- delete your #include of testadd.c in test.c
- define MyData in one of the of the .c files
- change the line in test.h to
extern int MyData;
- include test.h in both .c files.
- find a good book on programming in C and review the differences between extern and static scoping.

Thanks, Jeremy, for a clear description of the standard form. Would you recommend a particular book?


http://www.scribd.com/doc/4091721/CKerningham-Ritchie



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Newbie Question - #include scope -- Thanks!
      • From: Gil Dawson <email@hidden>
  • Prev by Date: Re: keyedobjects.nib vs. objects.nib
  • Next by Date: Soap request to a Web Service,
  • Previous by thread: Re: keyedobjects.nib vs. objects.nib
  • Next by thread: Re: Newbie Question - #include scope -- Thanks!
  • Index(es):
    • Date
    • Thread