That Visual C ++ option / option / flag is analogous to -ansi -pedantic in g ++

I have a C ++ code base and am porting from Visual Studio to g ++, which I have to install in Visual Studio to reduce build errors in gcc? With g ++, this is achieved using -ansi -pedantic.

+3
source share
3 answers

I believe you are looking for / Za .

+4
source

You should probably set the highest warning level / W 4 as well as disable the additional MS / Za language extensions. Also check that you are using the for / Zc loop scope parameter: forScope

+2
source

- VStudio AND GCC. GCC , VStudio:)

+1

Source: https://habr.com/ru/post/1733431/


All Articles