• 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
Xcode include/import question (probably dumb)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode include/import question (probably dumb)


  • Subject: Xcode include/import question (probably dumb)
  • From: marc hoffman <email@hidden>
  • Date: Mon, 23 Jun 2008 18:09:33 +0200

Hi,

i'm hoping someone with more xcode or gcc experience can help em with this:

assume i'm building a library, lets call it foo.framework. the library consists of quite a few source and header files; there's a foo.h file that forms the base for anyone who wants to pull in all public files. foo.h references other header files, such as #import <foo/foo2.h>. i can now reference this framework in other apps, and simply use import <foo/foo.h>, and all works fine. so far so good.

now, imagine there was a platform that did not support frameworks, so i create a separate project in Xcode, and set it up to compile as static library, foo.a.

and here is the problem: i now want to link foo.a into a project, which of course works fine by simply adding the foo.a file. however, i have no way to import the header files, because <foo/foo.h> will not be found by the compiler. even if i manually add foo.h (or even ALL the headers) to the project (and do #import "foo.h"), that does not get me any further, coz foo.h includes other header files, which again might reference each other internally, etc. - all using the <foo/*.h> syntax.


so the big question is: how can i make Xcode (or rather, i guess, gcc) recognize <foo/*.h> to import my header files?



thanx, marc hoffman



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Xcode include/import question (probably dumb)
      • From: Tommy Nordgren <email@hidden>
  • Prev by Date: Re: Smart group for "hot" files?
  • Next by Date: Re: sizeof float in Xcode debugger
  • Previous by thread: Re: sizeof float in Xcode debugger
  • Next by thread: Re: Xcode include/import question (probably dumb)
  • Index(es):
    • Date
    • Thread