• 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: GCC 4 and iostream.h
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC 4 and iostream.h


  • Subject: Re: GCC 4 and iostream.h
  • From: Stephane Sudre <email@hidden>
  • Date: Wed, 14 Dec 2005 15:14:09 +0100

Yes, this is fixing the problem.

The macro bible also helped in building a #if test for GCC version.

Thanks.


On 14 Dec 2005, at 15:02, Magnus Hoem wrote:

That's "just" a namespace error. Try "std::cout" or "using namespace std;" and it should work.

BR,
Magnus

On 14 dec 2005, at 14.56, Stephane Sudre wrote:


On 14 Dec 2005, at 14:29, Paul Walmsley wrote:


Because iostream does not exist for the 10.2 SDK.

It seems to on my machine in <10.2.8 SDK>/usr/include/gcc/darwin/3.3/c++/iostream


<iostream> has been the standard for a long time. It would seem very strange if your program isn't building with that. What compiler error are you getting?


#include <iostream>

...

cout << "<(" << stringFromClass() << " *) "<< this << " [" << retainCount_ << "]>\n";

=>

error: `cout' undeclared (first use this function)

Works fine with "iostream.h".


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

********************************************** Popwire Technology Magnus Hoem Senior Research Engineer email@hidden Årstaängsvägen 19 B Box 47612 SE-117 94 Stockholm, Sweden

Phone: +46 8 579 116 00
Direct: +46 8 579 112 12
Mobile: +46 733 25 44 34

http://www.popwire.com
***********************************************

This message, including any attachments may contain confidential and
privileged material; it is intended only for the person to whom it is
addressed. Its contents do not constitute a commitment by Popwire except
where provided for in a written and undersigned agreement.





_______________________________________________ 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: GCC 4 and iostream.h
      • From: Steve Checkoway <email@hidden>
References: 
 >GCC 4 and iostream.h (From: Stephane Sudre <email@hidden>)
 >Re: GCC 4 and iostream.h (From: Paul Walmsley <email@hidden>)
 >Re: GCC 4 and iostream.h (From: Stephane Sudre <email@hidden>)
 >Re: GCC 4 and iostream.h (From: Magnus Hoem <email@hidden>)

  • Prev by Date: Re: GCC 4 and iostream.h
  • Next by Date: Specifying precompiler flags?
  • Previous by thread: Re: GCC 4 and iostream.h
  • Next by thread: Re: GCC 4 and iostream.h
  • Index(es):
    • Date
    • Thread