Re: GCC 4 and iostream.h
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