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
• 4,820 points
7 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,960 points

Related Questions In C++

0 votes
0 answers

How can I terminate an infinite loop in Turbo C?

I get caught in an infinite loop.  How can I break this cycle?  Cntrl-C was attempted, however it had little effect.  I have no idea how to stop it. main() { ...READ MORE

Jul 13 in C++ by Nicholas
• 4,820 points
24 views
0 votes
0 answers

How to declare an array of strings in C++?

I am trying to iterate over all ...READ MORE

Jul 26 in C++ by Nicholas
• 4,820 points
9 views
0 votes
1 answer

Is there any built-in factorial function in c++?

Although no C function is written particularly for computing factorials, the C math package allows you to compute the gamma function. Because (n) Equals (n-1)!  Using tgamma of i+1 on positive integers returns i!. for (int i = 1 ; ...READ MORE

answered Aug 2 in C++ by Damon
• 4,960 points
13 views
0 votes
0 answers

How come an array's address is equal to its value in C?

The pointer values and pointer addresses in ...READ MORE

3 days ago in C++ by krishna
• 2,340 points
15 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
23 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,960 points
30 views
0 votes
0 answers

How to copy turbo c++ output?

How can I replicate the output of Turbo C++?  I had already Googled the issue, but in vain.  It suggests to either print scrn and paste or right click, select all, and paste.  I tried both, but neither worked.  The issue is that it simply copies what is on the current screen.  But I want the entire screen from the start.  (Alt+printscrn is also ineffective).  What should I do in this situation? printScrn Alt+printScrn markall None of them are operational!! I can't assist you if you require this archaic technique of programming for whatever reason, but I'd want to find a solution.  I tried forwarding the output stream to the file in this manner, but it did not work. #include<iostream.h> #include<conio.h> #include<stdlib.h> const int max=50; class dequeue{ int dq[max],r,f,c,x,i; public: dequeue(); void insertRear(); void insertFront(); void ...READ MORE

Jul 7 in C++ by Nicholas
• 4,820 points
25 views
0 votes
0 answers

Run C++ in command prompt - Windows

What may be the cause? I know ...READ MORE

Jul 22 in C++ by Nicholas
• 4,820 points
9 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,960 points
37 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 Jun 27 in C++ by Damon
• 4,960 points
22 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