ibneko: (Default)
ibneko ([personal profile] ibneko) wrote2005-10-12 11:27 pm
Entry tags:

ARGH~ jeeze... Frigging hmaps (USE_HEADERMAP!)

It took way too long to figure this out. A whole... 2+ hours.

Here's the problem:
In XCode, due to their use of header maps (.hmap files), they confused system files
[Error: Irreparable invalid markup ('<string.h>') in entry. Owner must fix manually. Raw contents below.]

It took way too long to figure this out. A whole... 2+ hours.

Here's the problem:
In XCode, due to their use of header maps (.hmap files), they confused system files <string.h> with the header files my teacher gives me "string.h". This causes a problem, of course. I've also heard of this problem with time.h.



The solution when you have files with names that are the same as system ones?
-Project > Edit Project Settings (or, alternatively, select your topmost project thing in "Groups & Files" and hit command+i)
-Click on the "Build" tab, then the "+" button at the bottom of the first large field. Add "USE_HEADERMAP" as the setting, and then uncheck the value - a box will appear.

This will disable the use of headmaps for that build configuration ONLY, unless you have your "Configuration:" set to "All Configurations".

You may need to do this for the target too... (as in, add that as a setting.) I'm not too sure, nor do I really feel like checking that.

[EDIT] GAH! It broke again. Or something.

[identity profile] devoyer.livejournal.com 2006-11-14 03:55 pm (UTC)(link)
Damn, it had taken 3+ hours before I started to google.

Thx a lot for your explanation. It's not quite clear why I should use an undocumented feature to get things work as they ought to

Very helpful

(Anonymous) 2007-05-14 10:17 pm (UTC)(link)
Hi! Just wanted to tell you I just ran into this problem with XCode and your tip really helped out!

I'm using xwWidgets and unfortunately they also have a "wx/string.h" file that XCode mistakenly uses instead of
[Error: Irreparable invalid markup ('<string.h>') in entry. Owner must fix manually. Raw contents below.]

Hi! Just wanted to tell you I just ran into this problem with XCode and your tip really helped out!

I'm using xwWidgets and unfortunately they also have a "wx/string.h" file that XCode mistakenly uses instead of <string.h>. Ugh. It's 2007 and it still hasn't been fixed...