[Explorer-devel] strstream vs. sstream
Brought to you by:
supalov
|
From: <st...@ac...> - 2005-11-11 18:55:36
|
Greetings all you great coders !!! Since Alexanders mail about a new game forming got me really really eager to play some I tried to compile up explorer 2.10 on a server tu run a small test-game... To kind of warm up... However, I discovered that since I use a more recent compiler than last time, the game is not inclined to compile at all. The problem can be easily solved by just go back to older gcc and g++, but I suppose even better would be a small "upgrade" of the code. Basic problem sems to be that strstream is used, not sstream. I suppose it would work (I managed to comple BlindMailer.cpp) if we include sstream instead and change the references to be stringstream instead of strstream. However to have a binary compile is not the same as to have it done correctly, aand I think someone with better knowledge of the code should evaluate the implications and using str(NewString) instead of constructing a new stringstream, copying it over the old one, and destroying the temporary. As well as checking if this parts should be #ifdef:ed with somekind of suitable _HAS_XXXX in case the new construct would be incompatible with older compilers. My ugly-hack sure does't make any checks, and I still have some files to "fix" before I have managed to compile the entire package to see if it works or dumps a core in my lap. Best regards /Jan-Olof Flink, galaxy veteran, c-programmer, C-noob |