Re: Newbie Question - #include scope -- Thanks!
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