AllGo wrote:
Anyway, if you want to learn C++ (and not Micorsofts broken version), use GCC...
GCC is not a good compiler to start learning C++. The way how the vtable of virtual methods is implemented is a mess. Line concatenation doesn't work with CR+LF etc. etc. Linking objects created with gcc and g++ also often doesn't work. GCC throws too many confusing errors.
Packing alignment also behaves odd,
#pragma pack ( 1 ) has to be used in conjunction with
__attribute__ ((packed)), otherwise GCC uses default alignment.
We're using GCC for our multimillion LOC (automotive / multimedia) projects and gcc has so many odds you have to be aware of.
Microsoft promised that the new 2005 Studio fully complies the C++ standard.
Btw. the Borland compiler has the same for-init-statement bug as MSVC.