Compiler Error
Martin v. Loewis
martin@mira.isdn.cs.tu-berlin.de
Mon May 31 21:06:00 GMT 1999
> The wonderful thing about ANSI-C was that compiling sources on different
> compilers was not a problem in most cases. So I have not thought that
> there would be so much problems with this project. Especially the
> project-manager told me that no Microsoft-specific syntax was used.
> Obviously he is wrong.
Not obviously. The ISO C++ standard was published only a year ago, and
no compiler on earth completely implements it. VC++ relaxes some rules
in the standard, g++ relaxes others. Please note that VC++ has a more
strict mode as well, which unfortunately breaks some of the VC++
header files.
> I have decided to wait for future versions of EGCS/GNU hoping that
> there will not be so much incompatibilties between the comercial and
> not comercial compilers. Obviously Microsoft does not support the
> development of ISO C++ seriously, because this compiler accepts all
> incorrect declarations.
I would not make that conclusion. While it is true that VC++ 6 is
apparently no big improvement over VC++ 5, Microsoft has been shipping
a mostly-compliant standard library for several versions now, whereas
g++ still has no compliant library. If you want to wait for 100%
portability, you probably have to wait a few more years.
Regards,
Martin
More information about the Gcc-bugs
mailing list