• 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: Sebastien Metrot <email@hidden>
  • Date: Wed, 14 Dec 2005 15:59:50 +0100

Check out the macro bible:
http://predef.sourceforge.net/precomp.html#compilers

Hope this helps,

Sebastien

Stephane Sudre wrote:
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
References: 
 >GCC 4 and iostream.h (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: Specifying precompiler flags?
  • Next by Date: re: Building on 10.4 - deploying on 10.3.9
  • Previous by thread: Re: GCC 4 and iostream.h
  • Next by thread: Specifying precompiler flags?
  • Index(es):
    • Date
    • Thread