• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Compile problems when multiple headers in project have same name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Compile problems when multiple headers in project have same name
      • From: Chris Ridd <email@hidden>
References: 
 >Compile problems when multiple headers in project have same name (From: Mark Rowe <email@hidden>)

  • Prev by Date: XCode Debugger has general problems
  • Next by Date: Re: Compile problems when multiple headers in project have same name
  • Previous by thread: Compile problems when multiple headers in project have same name
  • Next by thread: Re: Compile problems when multiple headers in project have same name
  • Index(es):
    • Date
    • Thread