• 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: Tommy Nordgren <email@hidden>
  • Date: Wed, 14 Dec 2005 15:03:57 +0100

the identifier cout is declared in namespace std

write:
using namespace std;
(in any legacy C++ implementation files (not in header files))
Dec 14, 2005 kl. 2:56 PM skrev Stephane Sudre:


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:
40chello.se


This email sent to email@hidden

"Home is not where you are born, but where your heart finds peace" - Tommy Nordgren, "The dying old crone"

_______________________________________________
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


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>)

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