Apparently some C++ headers have been removed in gcc-3.3, and the compilation fails with the following message: In file included from Attack.cxx:43: TextureLoader.h:7:25: strstream.h: No such file or directory In file included from Attack.cxx:43: TextureLoader.h: In static member function `static void TextureLoader::buildLocalDataDirectoryName(char*)': TextureLoader.h:34: error: `ostrstream' undeclared (first use this function) TextureLoader.h:34: error: (Each undeclared identifier is reported only once for each function it appears in.) TextureLoader.h:34: error: parse error before `;' token TextureLoader.h:36: error: `s' undeclared (first use this function) TextureLoader.h: In static member function `static void TextureLoader::buildLocalDataFileName(const char*, char*)': TextureLoader.h:46: error: parse error before `;' token make[1]: *** [Attack.o] Error 1 make[1]: *** Waiting for unfinished jobs.... Reproducible: Always Steps to Reproduce: 1. emerge crack-attack (with gcc 3.3) 2. 3.
Created attachment 16388 [details, diff] fixes compile problems with gcc-3.3
Wouldn't a using namespace std; At the top of the files make for a much smaller patch?
yes, thats how i normally fix these errors with newer gcc's ... thx for the patch though, i can just trim out the hunks i dont want :)
>Wouldn't a >using namespace std; >At the top of the files make for a much smaller patch? I just found the patch on Google, I didn't make it :)
i added a smaller version of the patch to cvs ... basically it utilizes 'using namespace std' instead of all those std:: ... cuts the filesize down from 22k to 8k :) thanks for the patch !