Has Windows an integrated built-in C C compiler package

0 votes

I would like to be able to compile C and C++ code under the Windows environment without using an IDE, just by using the Windows Command prompt (cmd.exe).

I come from Linux, where you are be able to install the gcc package with just a command in the terminal:

$ sudo apt install gcc

I'm wondering whether there's a C/C++ compiler collection in a package inside the Windows install directories, similar to the Linux ones, that I can just install.

What else motivates me to pose this question is:

Because the Windows kernel and the Windows API are written in C, and many of the high-level programmes in the final Windows 10 release are written in C++, it would make sense to supply an appropriate compiler suite as well. 

 

This is my mental model; it does not have to correspond to reality.

Thank you for your assistance.



 
Jun 14 in C++ by Nicholas
• 2,520 points
4 views

1 answer to this question.

0 votes
Microsoft does not offer a compiler or the requisite Windows SDK headers/libs with the Windows installation (which also contains a number of other essential development tools).

The analogous "built-in" choice would be Microsoft Visual C++ (part of Visual Studio), however I'm not sure whether Microsoft ever specifies which version they use for a specific Windows build, and it's usual to have a lot of applications created with several compilers/versions (including the various non-Microsoft ones).

Also included is the whole Visual Studio package, which includes the IDE and other tools.

Some components, such as the Build Tools for Visual Studio 2019, are available separately from Microsoft.

I'm sure there are a variety of reasons for this, including the fact that most users aren't interested in assembling their own software, and Microsoft still offers Visual Studio separately to bigger businesses (historically to most serious users, but "Community" edition is now pretty nonrestrictive for individuals and small business).
answered Jun 14 by Damon
• 4,240 points

Related Questions In C++

0 votes
1 answer

Declare abstract class in c++

An abstract class is one that is intended to be used as a base class .  At least one pure virtual function exists in an abstract class.  A pure virtual function is declared in the class declaration by using a pure specifier (= 0) in the declaration of a virtual member function. Here is an example of an abstract class: class AB { public: virtual void f() ...READ MORE

answered May 31 in C++ by Damon
• 4,240 points
20 views
0 votes
1 answer

What data structure is inside std::map in C++?

An associative container is std::map. The standard's ...READ MORE

answered May 31 in C++ by Damon
• 4,240 points
22 views
0 votes
1 answer

Easiest way to convert int to string in C++

C++ adds std::stoi (and variants for each numeric type) and std::to string, which are the C equivalents of atoi and itoa but expressed in terms of std::string #include <string> std::string s = std::to_string(42); Is therefore ...READ MORE

answered Jun 1 in C++ by Damon
• 4,240 points
28 views
0 votes
1 answer

Using getline() in C++

If you use getline() after cin >> anything, you must first flush the newline character from the buffer.  You can achieve this by using the cin.ignore() It would be something like this: string messageVar; cout ...READ MORE

answered Jun 1 in C++ by Damon
• 4,240 points
19 views
0 votes
0 answers

Programming slim C++ programs (like uTorrent) for Windows

What methods do you recommend for writing ...READ MORE

May 13 in Others by Kichu
• 19,040 points
19 views
0 votes
1 answer

outputting ascii table in C++

This line doesn't do the right thing: ch ...READ MORE

answered Jun 13 in C++ by Damon
• 4,240 points
12 views
0 votes
3 answers
0 votes
2 answers

When executing my Jenkins tests with Selenium WebDriver, I do not see a GUI.

Hi eLiJha, I also faced the same issue ...READ MORE

answered Jul 15, 2019 in Selenium by nayan
• 160 points
9,408 views
0 votes
1 answer

How to use std::sort to sort an array in C++

We receive std::begin and std::end in C++0x/11, which are overloaded for arrays: #include <algorithm> int main(){ int v[2000]; ...READ MORE

answered Jun 1 in C++ by Damon
• 4,240 points
15 views
0 votes
1 answer

Is there an easy way to make a min heap in C++?

Use make heap() and its buddies from algorithm>, or priority queue from queue>.  Make heap and friends are used by priority queue. #include <queue> // functional,iostream,ctime,cstdlib using namespace std; int main(int ...READ MORE

answered 6 days ago in C++ by Damon
• 4,240 points
7 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP