9

When I try

cpp -v

It shows I have gcc 4.9.2 installed. How do I check the current C++ version that I have installed on my Windows computer ?

Thanks !

EDIT:

Trying with

g++ -v

gives me this result -

enter image description here

julianff
  • 140
  • 1
  • 1
  • 10

4 Answers4

3

Try using g++ --version command at cmd Because for me also g++ -version or g++ -v command hasn't worked.

2

g++ -v (To check g++ version in window through cmd workes fine)

2

Just use g++ -v or gcc -v which will give you your compiler version.

You can also go to your windows settings, click on "Apps" go to the search bar and search up c++ scroll down to the last item, and click on it. The version should be displayed fairly obviously for you.

Microsoft Visual C++ version displayed from Microsoft Window's Settings

-2

Just go to https://support.microsoft.com/en-us/topic/the-latest-supported-visual-c-downloads-2647da03-1eea-4433-9aff-95f26a218cc0

enter image description here

Choose one and click.

Huaiyu Huang
  • 377
  • 2
  • 3