Re: Compile problems when multiple headers in project have same name
Re: Compile problems when multiple headers in project have same name
- Subject: Re: Compile problems when multiple headers in project have same name
- From: Marshall Clow <email@hidden>
- Date: Mon, 19 Apr 2004 06:03:09 -0700
At 6:42 PM +1200 4/19/04, Mark Rowe wrote:
Hi,
I have a project which consists of source files in several
directories. In particular, the root directory contains a file
named Defines.h. Many files within the project include it by using
the following syntax:
#include "Defines.h"
In a subdirectory, Foo, there is another file named Defines.h.
Files within the Foo directory include Foo/Defines.h by saying:
#include "Foo/Defines.h"
The problem is that GCC appears to be including the wrong Defines.h
in the second case. Instead of including Foo/Defines.h, it is
including the project root directory's Defines.h.
Yes, I've run into this problem as well.
After playing with build settings for a while, I noticed that
removing the "-Wp,-header-mapfile,/.../" portion of the compilation
command line solves the problem.
Yes.
My questions are as follows:
* Am I doing something wrong?
No.
* What can I do to make things work the way that I expect?
Wait for a fixed version of XCode :-(
--
-- Marshall
Marshall Clow Idio Software <mailto:email@hidden>
I want a machine that thinks I'm more important than it is, and acts like it.
-- Eric Herrmann
_______________________________________________
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.