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

GCC 4 and iostream.h


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

The new GCC 4.x is complaining that iostream.h is deprecated and that iostream shall be used.

Why not...

But would there be a way (a __KEYWORD__ for instance) to know which version of GCC you are compiling with?

Because iostream does not exist for the 10.2 SDK.

So the idea would be to do something like this:

#ifdef __GCC_4_OR_LATER__

#include <iostream>

#else

#include <iostream.h>

#endif

Is this possible?

I googled for this but the only thing I found is __GCC__ which is not helpful in this case. Using an other C flag option (-D) is not really an option since it won't bring a definitive answer to the problem as the target is moving.



_______________________________________________
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: Sebastien Metrot <email@hidden>
    • Re: GCC 4 and iostream.h
      • From: Paul Walmsley <email@hidden>
  • Prev by Date: Re: Different structure sizes
  • Next by Date: Re: GCC 4 and iostream.h
  • Previous by thread: Re: Xcode-users Digest, Vol 2, Issue 726
  • Next by thread: Re: GCC 4 and iostream.h
  • Index(es):
    • Date
    • Thread