2

I would like to use Windows SDK 7.1 to compile some C functions in Matlab r2014b. Now I wonder which C standard the compiler follows? My previous research in google (no study of manuals) did not yield a result yet.

Furthermore I would like to know if it is possible to change the used standard.

theNewOne
  • 33
  • 4

1 Answers1

3

When I run the command cl.exe /? on the Windows SDK 7.1 Command Prompt, it reports version number 16.00.30319.01, which, according to the accepted answer on this question is the version of the compiler that ships with Visual Studio 2010.

According to Wikipedia, Microsoft did not begin to add support for C99 until Visual Studio 2012, so the compiler that ships with Windows SDK 7.1 must be at most C90-compliant.

Govind Parmar
  • 20,656
  • 7
  • 53
  • 85