Re: Source Tree Preference
Re: Source Tree Preference
- Subject: Re: Source Tree Preference
- From: Markus Hitter <email@hidden>
- Date: Sun, 9 Nov 2003 21:46:36 +0100
Am 09.11.2003 um 19:03 schrieb Marshall Clow:
Scott Tooker <email@hidden> wrote:
Just to clarify some things:
1. Xcode doesn't support recursive search paths.
A major failing, IMNSHO.
What's the rationale here?
Such things work on simplistic systems, only. Take the file "limits.h",
for example:
Nobile:~$ find /usr/include -name limits.h -print
/usr/include/gcc/darwin/2.95.2/machine/limits.h
/usr/include/gcc/darwin/3.1/machine/limits.h
/usr/include/gcc/darwin/3.3/machine/limits.h
/usr/include/i386/limits.h
/usr/include/limits.h
/usr/include/machine/limits.h
/usr/include/ppc/limits.h
Which one should the compiler use by default? There are already some
rules and more rules whould make things more complicated (and break
compatibility to most other UNIces in the world).
It assumes that all the code that I share between projects lives in a
single directory. PowerPlant, boost, Whisper, crypto++, etc, none of
these follow that model.
Usually, you add a -I flag for every library you use.
Or, you use something like
#include <crypto/whatever.h>
Both are common pratices in the UNIX world.
Markus
P.S.: If you want recursive behaviour, add the output of
find /usr/include -type dir | while read D; do echo -n "-I $D "; done
to your CFLAGS ... ahem, but don't expect things work like before, then
...
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.