quote: Original post by clum
I had several problems converting my "cross-platform" SDL game into Linux. Most of them were related to incompatibilities in the compilers. Try the following code in MSVC:
In MSVC 6 (at least the version I have), it came up with some error about redefinition of ''i''. I can''t tell you the exact error because I''m not in Windows now. In g++, it compiled fine. But if you remove the second int, it works find in MSVC, while g++ says:
g++ error.cc
error.cc: In function `int main()'':
error.cc:3: error: name lookup of `i'' changed for new ISO `for'' scoping
error.cc:2: error: using obsolete binding at `i''
That''s with the following output from g++ --version:
g++ (GCC) 3.3 20030226 (prerelease) (SuSE Linux)
And for non-games, its even harder. Have you ever made a GUI in C for Windows or XWindows? No matter how much design you put into it, its not fun. And Java is just plain ugly.
That was a stupid bug in VC++ 6.0. It should be updated, so download some of the service packs. In any case it doesn''t exist in VS.NET.