12

How do I check if gcc is installed on my pc? I'm running windows 7.

2
  • have you installed it? that should give a clue.
    – TZHX
    Apr 2, 2015 at 15:28
  • No i haven't installed it. This is a hand me down, hand me down, hand me down computer so I don't know if it's ever been installed or not. Apr 2, 2015 at 15:46

4 Answers 4

23

Very simple.

Go to Command Prompt and type

gcc -v

if gcc is installed on your PC, it should display a host of information, starting with the sentence

Using built-in specs

and that will indicate that gcc is installed on your computer.

1

Windows 8 - right-click on the Start Button and select Command Prompt. For older Windows systems, click the Start Button and in the search box type “cmd""

In the Command Prompt window type “gcc” and hit enter. • If the output says something like “gcc: fatal error: no input files”, that is good, and you pass the test.

1

Type the following: gcc --version

0

you can check by running gcc command in the terminal. If you get something like - gcc: fatal error: no input files compilation terminated terminal

it means it is installed you can check the current version with gcc --version or, gcc -v

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.