• 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: Problems with #include "" vs #include <>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with #include "" vs #include <>


  • Subject: Re: Problems with #include "" vs #include <>
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 19 Dec 2003 16:19:15 -0800

On Dec 19, 2003, at 4:11 PM, Marshall Clow wrote:

This is almost certainly a headermaps issue. Turning off headermaps in Xcode might do the trick.

I tried that, it almost worked.
In my main file, there was a #include "Foo.h", where Foo.h was in the same directory
as the project. It couldn't find it :-(


I added an additional search path of '.', and it fixed that.

Now I'm getting other errors, but they're not missing include files any more.
Thanks.

For those of you keeping score at home, Marshall added USE_HEADERMAPS = NO to his target Build Settings to turn off header maps. That eliminated the problem of header name ambiguity but also defeated the default access to his project's headers.


I'd recommend using a specific Xcode build setting like $(SRCROOT) instead of ".", as you cannot necessarily rely on the working directory always being the source root of your project.

Chris
_______________________________________________
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.

References: 
 >Problems with #include "" vs #include <> (From: Marshall Clow <email@hidden>)
 >Re: Problems with #include "" vs #include <> (From: Chris Espinosa <email@hidden>)
 >Re: Problems with #include "" vs #include <> (From: Marshall Clow <email@hidden>)

  • Prev by Date: Re: Slow Xcode UI
  • Next by Date: Re: Xcode Tools Readme
  • Previous by thread: Re: Problems with #include "" vs #include <>
  • Next by thread: Re: Problems with #include "" vs #include <>
  • Index(es):
    • Date
    • Thread