-3

compile error like this:

fatal error : 'sys/types.h' file not found .

and a test application with main function,error like this:

error : unkonwn type name '__darwin_off_t'

ps : I hace installed the xcode command tool ..

tony
  • 1
  • 3
  • 10.6 to 10.9 is a big jump. Its quite possible system files moved around a bit. How did you install gcc previously (brew? macports? command line tools?) Have you *reinstalled* gcc and Xcode after the upgrade? –  Sep 04 '14 at 02:58
  • I had reintall xcode ,and command line tools. I do nothing with gcc . – tony Sep 04 '14 at 03:28
  • With 10.8, gcc on OSX isn't gcc anymore - its a front to clang (see [OS X 10.9 gcc links to clang](http://stackoverflow.com/q/19535422/289086)). If that hasn't been updated, things may break quite significantly. If that hasn't been updated with the command line tools install, you likely have some troubleshooting to do there. If you want *gcc* and not a front to clang, you will need to install it from an alternate source. It may help to add the output of `gcc -v` to the question. –  Sep 04 '14 at 03:48
  • and gcc is installed with xcode . – tony Sep 04 '14 at 03:48
  • You'll need to install the command line tools from XCode. There are questions about that, either here or on the [Apple](http://apple.stackexchange.com/) site, or on [SuperUser](http://superuser.com). – Jonathan Leffler Sep 04 '14 at 04:00
  • @MichaelT I reintall gcc with brew, and it does not work. And the version is clang-503.0.40. Can calng compile the GNU project whih a Makefile ? – tony Sep 04 '14 at 06:13

1 Answers1

0

Thank you very much !

The question solved finally by reinstall gcc .

The download address : https://github.com/kennethreitz/osx-gcc-installer/downloads

I use the version : GCC Installer for OSX 10.6.x

tony
  • 1
  • 3