• 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: ostringstream problem with numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ostringstream problem with numbers


  • Subject: Re: ostringstream problem with numbers
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 23 Oct 2009 10:48:04 -0700

On Oct 23, 2009, at 10:35 AM, Paxton Sanders wrote:

Gotcha.  Is there a way in Xcode to make this the default for all C++ projects I create in the future?

It's not a newbie question; we knew that gcc 4.2 wasn't yet compatible with STL Debug Mode due to ABI changes from the Gnu community, but we forgot to remove those macros from the project templates.

Using admin privileges, edit the following files.  (Best way: at the command line, sudo chmod ugo+w on each file, then use xed to open them in Xcode):

/Developer/Library/Xcode/Project Templates/Application/Command Line Tool/C++ Tool/C++Tool.xcodeproj/project.pbxproj
/Developer/Library/Xcode/Project Templates/Application/Command Line Tool/C++ Tool/C++Tool.xcodeproj/project.pbxproj
/Developer/Library/Xcode/Project Templates/Framework & Library/STL C++ Library/C++ Dynamic Library/CppShared.xcodeproj/project.pbxproj
/Developer/Library/Xcode/Project Templates/Framework & Library/STL C++ Library/C++ Dynamic Library/CppShared.xcodeproj/project.pbxproj
/Developer/Library/Xcode/Project Templates/Framework & Library/STL C++ Library/C++ Standard Dynamic Library/CppShared.xcodeproj/project.pbxproj
/Developer/Library/Xcode/Project Templates/Framework & Library/STL C++ Library/C++ Standard Dynamic Library/CppShared.xcodeproj/project.pbxproj
/Developer/Library/Xcode/Project Templates/System Plug-in/Generic C++ Plug-in/Generic C++ Plugin.xcodeproj/project.pbxproj
/Developer/Library/Xcode/Project Templates/System Plug-in/Generic C++ Plug-in/Generic C++ Plugin.xcodeproj/project.pbxproj

In each file you'll find an entry that looks like this:

GCC_PREPROCESSOR_DEFINITIONS = (
"_GLIBCXX_DEBUG=1",
"_GLIBCXX_DEBUG_PEDANTIC=1",
);

Just delete those lines and save the files.

Chris
 _______________________________________________
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: ostringstream problem with numbers
      • From: Paxton Sanders <email@hidden>
References: 
 >ostringstream problem with numbers (From: Paxton Sanders <email@hidden>)
 >Re: ostringstream problem with numbers (From: Chris Espinosa <email@hidden>)
 >Re: ostringstream problem with numbers (From: Paxton Sanders <email@hidden>)

  • Prev by Date: Re: ostringstream problem with numbers
  • Next by Date: Re: Validating a form
  • Previous by thread: Re: ostringstream problem with numbers
  • Next by thread: Re: ostringstream problem with numbers
  • Index(es):
    • Date
    • Thread