question

PANDEYManish-5719 avatar image
0 Votes"
PANDEYManish-5719 asked PANDEYManish-5719 commented

Does visual studio 2019 fully support C99 standard for C code compilation

Hi Team ,

Wanted to know which standard VS 2019 is following for C .Whether it's fully comptaible with C99 standards for C compilation.
As i am trying to cross compile my C code in windows Visual studio 2019 but getting issues while doing so.
With gcc i am forcing to compile with c99 option which is working in Linux but failing in VS 2019.

Regards
Manish Pandey

vs-generalvs-debugging
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DavidLowndes-6766 avatar image
0 Votes"
DavidLowndes-6766 answered PANDEYManish-5719 commented

Have you seen this documentation?


· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi David, thanks for sharing the link.
Given link tells about specific C99 C standard libraries features.Same doesn't specify whether it's fully comptiable or not with C99 standards.
One more thing wanted to know is how to enable that option when compiling the code from developer command prompt.



0 Votes 0 ·

I'm not sure if there is any definitive documentation that says its supported. I think VC++ only implements some C99 features, and I don't know of any specific compiler options to enforce a 'C' standard in the same way as there is for C++.

0 Votes 0 ·
Castorix31 avatar image Castorix31 PANDEYManish-5719 ·

First Google links lead to Compiling with C99 C in Visual Studio
But not tested...


0 Votes 0 ·

Tried with given link.Below link was specific to VS2017 configuration and same was not able to map in V2019 .
So tried below things
Configuration - General Properties -> C language Standard
under this found C11 and C17 standards so tried to compile the code with them in VS2019 advanced shell.With that also i am not getting the error issues resolved. So wanted to know whether i am on right direction or not.Is there any secttion where C99 specific options are available on VS2019.


Regards

0 Votes 0 ·

Also, if you're looking to solve any issues, it might help if you show a minimal example of what aspects are causing problems - though maybe start a new question for those.

0 Votes 0 ·