• 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: email@hidden
  • Date: Sat, 24 Oct 2009 08:57:55 -0400


On Oct 23, 2009, at 1:32 PM, Chris Espinosa wrote:


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

I have 10.6 (3.2 Xcode) installed. 64-bit, Xcode IDE: 1610.0, Xcode Core: 1608.0, ToolSupport: 1591.0

When I insert a numeric value into an ostringstream, the resultant string is incorrect.

When I drop out to the terminal and compile the application, the output is correct.
When I move the compiler version back from 4.2 to 4.0 within xcode, the output is correct.
When I change the project to release with gcc 4.2, the output is correct.


So, 4.2 debug within Xcode has a problem. As it turns out, debug mode is my favorite!

Is there a fix available?

Project > Edit Target Settings, enter "GLIBCXX" into the search field.

Wherever you find GLIBCXX_DEBUG=1 or GLIBCXX_DEBUG_PEDANTIC=1, delete them.

Chris


I've got a similar issue with a C++ command line project. When I use the the vector class in Debug mode, it crashes, but works fine in release mode. When I search for GLIBCXX, nothing shows up (even with Configuration: All Configurations and Show: All Settings). However, grep finds it in the project.pbxproj file.

grep GLIBCXX *
project.pbxproj:					"_GLIBCXX_DEBUG=1",
project.pbxproj:					"_GLIBCXX_DEBUG_PEDANTIC=1",

Why isn't the search finding them? I tried creating a brand new C++ command line project and the search for GLIBCXX fails there too.

Any suggestions?

Thanks,
Dave

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

  • Prev by Date: Re: query for ASLR settings in Xcode.
  • Next by Date: Re: query for ASLR settings in Xcode.
  • Previous by thread: Re: ostringstream problem with numbers
  • Next by thread: Re: ostringstream problem with numbers
  • Index(es):
    • Date
    • Thread