• 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 Xcode 3.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ostringstream problem with Xcode 3.2


  • Subject: Re: ostringstream problem with Xcode 3.2
  • From: Todd Heberlein <email@hidden>
  • Date: Sat, 03 Oct 2009 12:32:04 -0700

[Note: I hate that the Apple mailing lists block my submissions when coming from me.com (as opposed to mac.com). Apple's lists should know mac.com and me.com are equivalent.]

Hmmm... I thought this bug was solved.


In Xcode try switching to "Release" instead of "Debug" and see if the problem goes away. I think I was once told it goes away with the STL libraries linked in Release mode.


Todd
On Oct 3, 2009, at 11:46 AM, Dmitry Markman wrote:

Hi
I created new project (from c++ stdc++ template)

and I got weird problem.

the following code

   std::ostringstream os
   int d = 65;
   os << "d = " << d;
   std::cout << os.str()  << std::endl;

returns just   "d = ", I expect to have "d = 65"

so what am I doing wrong?

if I compile that code from terminal
g++ ostringstream.cpp
./a.out
sends to terminal right string

which g++
/usr/bin/g++

ls -la /usr/bin/g++
lrwxr-xr-x  1 root  wheel  7 Aug 28 23:41 /usr/bin/g++ -> g++-4.2

g++ --version
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646)


thanks



Dmitry Markman

_______________________________________________
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

_______________________________________________ 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 Xcode 3.2
      • From: Dmitry Markman <email@hidden>
References: 
 >ostringstream problem with Xcode 3.2 (From: Dmitry Markman <email@hidden>)

  • Prev by Date: Re: (no subject)
  • Next by Date: Changing text field attributes
  • Previous by thread: ostringstream problem with Xcode 3.2
  • Next by thread: Re: ostringstream problem with Xcode 3.2
  • Index(es):
    • Date
    • Thread