Re: Dynamic #include statements in Xcode?
Re: Dynamic #include statements in Xcode?
- Subject: Re: Dynamic #include statements in Xcode?
- From: Markian Hlynka <email@hidden>
- Date: Sun, 26 Sep 2004 21:39:26 -0600
Vadim,
Certainly, the checkboxes are part of the answer, but you're talking
about conditional compilation based on defined symbols. So, I agree
that it seems to me that it shouldn't _all compile. Are your symbols
are inside the files, or do you use some of them as -D on the
compile-line?
So, I guess I'm not sure what the answer is... but I'd sure like to
know! I'm forwarding your query to the xcode users list at Apple. If
any of you would like to reply directly to Vadim, his address is
email@hidden.
Vadim, if you're interested in joining the list, go to lists.apple.com
and look for 'xcode users'.
Markian
On Sep 26, 2004, at 15:27, Vadim Bulitko wrote:
Hello:
I have a C++ project that I am importing from Linux into XCode. It has
several .cpp and .h files of the _same name_ sitting in different
subdirectories. Only one of these files of the same name is #included
during compilation based on the #defined variables (it is using #ifdef
for conditional inclusion).
When I imported the project into XCode, it listed all files under
Source (though kept them in their subdirectories). Now, they _all_
seem to compile and then the same class ends up multiply defined. My
quick hack was to uncheck some of the files by the same name in the
project pane (see the screenshot attached). This seems to avoid the
error messages by manually repeating the conditional inclusion as
defined by #define, #ifdef, and #include.
Is there way to make XCode compile only the files that are #included
in the code and not everything that is listed in the project?
Thanks,
Vadim
<Picture 1.pdf>
_______________________________________________
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