Re: Newbie Question - #include scope
Re: Newbie Question - #include scope
- Subject: Re: Newbie Question - #include scope
- From: Etienne Guérard <email@hidden>
- Date: Thu, 11 Dec 2008 10:54:11 +0100
If you want to stick with your actual design anyway, you just have to
uncheck testadd.c from your current target, so that it won't get
compiled when you build your target.
EG
On Dec 11, 2008, at 10:11 AM, Jeremy Pereira wrote:
On 10 Dec 2008, at 23:52, Mark Wagner wrote:
On Wed, Dec 10, 2008 at 12:22, Steve Checkoway <email@hidden> wrote:
On Wed, Dec 10, 2008 at 11:19:08AM -0800, Gil Dawson wrote:
I made up a little project to demonstrate this thing. The project
contains three files (listed below); "test.c" #includes the other
two.
The first #included file declares a global variable, MyData, and
sets it.
The second #included file uses that variable.
This isn't an Xcode question, it's a C question.
According to the C standard, the code should compile without
problems.
Since it doesn't, it's a problem with Xcode.
testadd.c does not have a declaration of MyData in it, nor does it
include test.h. According to the C standard, that's a compilation
error. Xcode is not misbehaving in this instance.
What does the build transcript say? In the "Build Results" window,
click on the little button in the middle of the window with four
lines
on it (right next to the button with the exclamation point) to show
the transcript, then copy-and-paste it into an email.
--
Mark Wagner
_______________________________________________
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
_______________________________________________
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
------------------------------------------------------------
This message and any attachments (the "message") are confidential and intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither DxO Labs nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. DxO Labs et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, modifie ou falsifie.
_______________________________________________
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