Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine whether a C/C++ compiler is installed on Windows? [closed]

I would like to determine whether there is already a compiler installed.

Do you know a command on Windows which I could use in the console to do that?

like image 989
Jesus Peralta Avatar asked Jan 30 '17 10:01

Jesus Peralta


People also ask

How do I know if C compiler is installed?

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.

How can I tell if C compiler is installed on Windows?

Open command prompt (Type “cmd” in search box). 8. Type “gcc –version” in command prompt to check whether C compiler is installed in your machine. Type “g++ –version” in command prompt to check whether C++ compiler is installed in your machine.

How do I know if I have a C++ compiler installed?

So if you ever need to check the version of the GCC C++ compiler that you have installed on your PC, you can do it through the command prompt by typing in the single line, g++ --version, and this will return the result.

How do I know if C++ is installed on Windows 10?

To check if Visual C++ redistributables are installed, open Add and Remove Programs and look for the Microsoft Visual C++ Redistributable. If installed, you see "Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.22.


1 Answers

There is no catch-all way to discover whether there is "a" C or C++ compiler installed, because different compilers are invoked in different ways. You could iterate through the common ones (e.g. running g++ from shell) but, really, you should know what software is running on your computer because you installed it. If you did not set up the computer, ask the person who did.

like image 157
Lightness Races in Orbit Avatar answered Nov 15 '22 20:11

Lightness Races in Orbit