Re: Visual C++ support of C99 by using "C++ mode" (/TP)




"P.J. Plauger" <pjp@xxxxxxxxxxxxxx> wrote in message
news:-MydnQW7up0EOZPbnZ2dnUVZ_tadnZ2d@xxxxxxxxxxxxxxx

VC++ compiles either in C mode (which is def. *not* C99!):
cl.exe /TC c_file.c

or in C++ mode
cl.exe /TP cpp_file.cpp

In C mode (/TC), VC++ is definately *not* conform to C99!




But an interesing question is:
How conform is VC++ to C99, when used in C++ mode (/TP)??

This is particularly interesting, when considering that
the C99 library is part of C++ TR1.
http://groups.google.at/group/comp.lang.c/browse_thread/thread/a6d0e5ddb976ecb1/95879cd6fca0acc8?hl=en#95879cd6fca0acc8

To what extent does the latest VC++ (in C++ mode /TP) support C++ TR1?

Not at all.

To what extent does the latest VC++ (in C++ mode /TP) use Dinkumware
libraries?

We supply the Standard C++ library only, and have done so for over a
decade. But it is our earnest desire to license everything we have
to Microsoft, sooner or later. Note that the next revision of Standard
C++ will include all of the C99 library, as well as most of the rest
of TR1. To the extent that this creates demand from the public,
Microsoft might be interested in adding these features.

If MS does, it might be that little push that C99 needs to be commonly
accepted. Personally I would love to see MSVC with full C99 support.


.



Relevant Pages