• 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: Xcode problem including stdio.h
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode problem including stdio.h


  • Subject: Re: Xcode problem including stdio.h
  • From: Terry Simons <email@hidden>
  • Date: Mon, 3 Mar 2008 20:51:13 -0700

Hmmm interesting.

I've determined that the problem here is the recursive /usr/include header path search.

Odd, because this doesn't pose a problem for the other 2 libraries I'm building (which include headers from /usr/include/libxml2)

This other library doesn't use any includes from recursive directories in /usr/include... so that's somehow the problem.

Can anybody comment as to whether what I'm trying to do here is a Totally Bad Idea (tm)?

My project has a lot of helper libraries that variously reference libxml2 and a few other 3rd party libraries/headers, and I was trying to make my life easy by shortcutting the need for specific references. ;)

Is what I've discovered some sort of corner-case bug, or is it expected behavior?

- Terry

On Mar 3, 2008, at 8:44 PM, Terry Simons wrote:

I'm running into a strange issue migrating a library (which builds fine on the command line with gcc) to an Xcode target. I'm having a devil of a time trying to figure out what's going on, but it doesn't seem like the error in question is actually pointing at the real problem.

The error is:

/usr/include/stdio.h:75: error: syntax error before 'off_t'

It appears to be occurring directly after including stdio.h (which is the first thing that happens) in the main library file (which is the first file to get compiled).

The only tweaks I've made to the target are:

ARCHS = ppc ppc64 i386 x86_64
HEADER_SEARCH_PATHS = /usr/include/** ../..//**

Additionally, I've already successfully created and got 2 other library targets (which are much bigger/convoluted) building.

Both of the working libraries are also including stdio.h. Both of the working libraries have the same target tweaks.

Any ideas?  I'm totally baffled.

- Terry
_______________________________________________
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

_______________________________________________ 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
References: 
 >Xcode problem including stdio.h (From: Terry Simons <email@hidden>)

  • Prev by Date: Xcode problem including stdio.h
  • Next by Date: Can Xcode run my application elevated?
  • Previous by thread: Xcode problem including stdio.h
  • Next by thread: Re: Xcode problem including stdio.h
  • Index(es):
    • Date
    • Thread