I'm having difficulty porting some code that was developed on linux.
The code contains a header called Time.h which is in a subdirectory of
my project's main directory called Utils. The problem is that one of
the system headers (<ctime>) does
#include <time.h>
and because of what I think is a bug, it gets my project's Utils/Time.h
instead of /usr/include/time.h.
I know HFS is case-insensitive, but I think it's a bug because the
Utils subdirectory is _not_ mentioned in any header paths I've defined.
Its parent is, and in my source files, headers from Utils are always
included like this:
#include "Utils/Time.h"
After much experimentation, I found that the bug is provoked by xcode's
use of the undocumented preprocessor option -header-mapfile. The gcc
command line xcode generates looks something like this:
from the command line, the problem goes away. So my questions are, (1)
what is -header-mapfile supposed to do, (2) why does it break include
path searching, and (3) how can I make it stop?
- lc
_______________________________________________
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.