[Live-devel] live.com build fix for gcc 3.3x

Ross Finlayson finlayson at live.com
Fri Feb 20 04:40:06 PST 2004


At 03:25 AM 2/20/04, you wrote:
>Am Fr 20 Feb 2004 02:54:12 GMT schrieb Ross Finlayson:
> > FYI, I have now added this to the two files ("groupsock/Groupsock.cpp" and
> > "groupsock/NetInterface.cpp") that #include <strstream.h>.  They should
> > now #include <strstream.h> for GCC versions < 3, and #include <strstream>
> > for GCC versions >= 3.
> > Could someone with GCC 3.* please download the latest version (2004.02.20)
> > of the code, and confirm that it now compiles OK without the file
> > "strstream.h"?
>
>Hi,
>
>this doesn't work here with gcc 3.3.2. for me, __GNUC_MINOR__ is 3, so
>the check in Groupsock.cpp fails.

I don't follow this.  The code is:

#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC_ == 3 && __GNUC_MINOR__ > 0)
#include <strstream>
#else
#include <strstream.h>
#endif

So, if __GNUC__ is 3, and __GNUC_MINOR__ is 3, then the test should 
succeed, and "strstream" should be included, which is what you want for gcc 
3.3.2.

So why is it still failing for you?


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list