• 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
g++ build problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ build problems


  • Subject: g++ build problems
  • From: David Koontz <email@hidden>
  • Date: Thu, 26 Oct 2006 18:30:12 -0700

I'm having a problem building a C++ project. I have XCode 2.3 although I at one point had 2.4 installed (downgraded as a suggested fix for this issue). Here is the first few lines of a g++ build.

g++ utils.cpp -c -o utils.o -I/usr/local/include -I/usr/lib/ruby/1.8/i686-darwin8.6.1 -I/usr/local/lib/ruby/1.8/i686-darwin8.6.1 -I/opt/local/lib/ruby/1.8/i686-darwin8.6.1 -Iincludes/ogre_headers -Iincludes/swig_wrappers -I/Library/Frameworks/Ogre.framework/Headers -I/Library/Frameworks/Ogre.framework/MissingHeaders -DGCC_3_1 -fPIC
/usr/include/c++/4.0.0/cstddef:52: error: '::ptrdiff_t' has not been declared
/usr/include/c++/4.0.0/cstddef:53: error: '::size_t' has not been declared
/usr/include/c++/4.0.0/cstdio:99: error: '::FILE' has not been declared
/usr/include/c++/4.0.0/cstdio:100: error: '::fpos_t' has not been declared
/usr/include/c++/4.0.0/cstdio:102: error: '::clearerr' has not been declared
/usr/include/c++/4.0.0/cstdio:103: error: '::fclose' has not been declared
/usr/include/c++/4.0.0/cstdio:104: error: '::feof' has not been declared
/usr/include/c++/4.0.0/cstdio:105: error: '::ferror' has not been declared
/usr/include/c++/4.0.0/cstdio:106: error: '::fflush' has not been declared
/usr/include/c++/4.0.0/cstdio:107: error: '::fgetc' has not been declared
/usr/include/c++/4.0.0/cstdio:108: error: '::fgetpos' has not been declared
/usr/include/c++/4.0.0/cstdio:109: error: '::fgets' has not been declared
/usr/include/c++/4.0.0/cstdio:110: error: '::fopen' has not been declared
/usr/include/c++/4.0.0/cstdio:111: error: '::fprintf' has not been declared
/usr/include/c++/4.0.0/cstdio:112: error: '::fputc' has not been declared
/usr/include/c++/4.0.0/cstdio:113: error: '::fputs' has not been declared
/usr/include/c++/4.0.0/cstdio:114: error: '::fread' has not been declared
/usr/include/c++/4.0.0/cstdio:115: error: '::freopen' has not been declared
... and so on


I had found some references to this type of problem on other platforms and it was suggested something might have messed up the headers in /usr/include. I was unsure if XCode overwrote those files when it installed or if there was supposed to be another version of them that XCode uses to build. This was all from the command line so maybe g++ isn't even part of XCode proper?

David Koontz
_______________________________________________
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


  • Prev by Date: Re: Accessing function definitions
  • Next by Date: XCode Falls Short - for now
  • Previous by thread: Re: Scrolling in Xcode editor
  • Next by thread: XCode Falls Short - for now
  • Index(es):
    • Date
    • Thread