[Live-devel] compiling live on arm9

Ross Finlayson finlayson at live.com
Fri Apr 23 14:14:49 PDT 2004


><sstream> is the ISO C++ standard header.

Well, a few weeks ago people told me that the following #ifdef's (which are 
now used in a couple of places in the code) would do the right thing:

#if (defined(__WIN32__) || defined(_WIN32)) && !defined(__MINGW32__)
#include <strstrea.h>
#else
#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
#include <strstream>
#else
#include <strstream.h>
#endif
#endif

(I'm still using an old version of gcc for my own development, so I haven't 
been able to fully test this myself.)

Are you now saying that "<strstream>" should be replaced by 
"<sstream>"?  Will this work for everyone?  In particular, does everyone 
who uses gcc version > 3.0 have the file "sstream", and, if so, is it 
equivalent to the file "strstream".  Apparently it didn't work for Richard 
Briggs (the person who started this thread) -  when he replaced 
"<strstream>" with "<sstream>", I think he got a 'file not found' error.

But if other people also think I should replace "<strstream>" with 
"<sstream>", then let me know.


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



More information about the live-devel mailing list