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

Xcode problem including stdio.h


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

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


  • Follow-Ups:
    • Re: Xcode problem including stdio.h
      • From: Alastair Houghton <email@hidden>
    • Re: Xcode problem including stdio.h
      • From: Terry Simons <email@hidden>
  • Prev by Date: Re: How do I remove a -L directory from the Build phase?
  • Next by Date: Re: Xcode problem including stdio.h
  • Previous by thread: Re: Static-linking a framework?
  • Next by thread: Re: Xcode problem including stdio.h
  • Index(es):
    • Date
    • Thread