Open In App

How to Install Visual C++ on Linux?

Last Updated : 06 Oct, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

Visual C++ is Software made by Microsoft Corporation. It is used to build desktop applications using the C and C++ languages. It was initially released in February 1993. In this article, we are going to learn how we can install Visual C++ in our Linux System.

Installing Visual C++ on Linux:

Step 1: Go to the Microsoft website to download the Visual Studio Code & C++.

 Microsoft website

downloading Visual C++

Select the above configuration and click on the Download Visual Studio Code button.

Step 2: After downloading the file, open up the Linux terminal and navigate to the Downloads folder.

To navigate to the Downloads folder:

cd Downloads

To list all the Downloads files.

ls
list files

Downloaded file

Step 3: Before starting the installation of the Visual C++, make the above-downloaded file executable by running the following command.

sudo chmod +x code_1.60.2-1632313585_amd64.deb
 Installation of the Visual C++ on Linux

executable file

This command will change the permissions of the downloaded file to be an executable file, where X stands for executable.

Step 4: To start the installation, we are going to use the dpkg, which is a Debian package manager. Run the following command to install the Visual C++.

sudo dpkg -i code_1.60.2-1632313585_amd64.deb  

Successfully installed

Here, -i flag represents the install command.

Step 5: To open the installed Visual Studio & C++, run the following command in the terminal:

code .

Visual Studio Code

This will open the Visual Studio Code in the current folder.

Step 6: Let’s run a simple C++ program to verify the working of the software.

  • Download the Code runner library to run the code. Open up the Code Studio and click on the extension section and search for Code Runner and click on the install button.

Installing Code Runner

Sample Code :

C++




#include <iostream>
using namespace std;
  
int main() {
    cout<<"GFG!";
    return 0;
}


Output:

Output


Similar Reads

How to install Visual Studio Code on Arch-based Linux Distributions(Manjaro) ?
Visual Studio Code is free, powerful and one of the most popular IDE in the market. It is a cross-platform application and can be customized heavily by installing various extensions. All the modern programming languages like C, C++, Java, Python, JavaScript, React, Node JS, etc., are all supported by it. Features of VS CodeOpen-sourceIntegrated ter
2 min read
How to Install and Setup Visual Studio for ASP.NET?
Visual Studio is an Integrated Development Environment(IDE) developed by Microsoft to develop GUI(Graphical User Interface), Web applications, console, web apps, mobile apps, cloud, and web services, etc. To install and use Visual Studio for the commercial purpose one must buy a license from Microsoft. For learning (non-commercial) purpose, Microso
4 min read
How to Install Visual C++ on Windows?
In this article, we will discuss the process of installing Visual C++ on Windows. Visual C++ is part of the general "C suite" of programming languages often used for many different types of development projects. The full name of the product is Microsoft Visual C++, which is sometimes abbreviated as MSVC or VC++. Installing Visual C++ on Windows: Fo
1 min read
How to Install and Setup Visual Studio for C#?
Prerequisite: Introduction to C# C# is a general-purpose, modern and object-oriented programming language pronounced as "C sharp". It was developed by Microsoft led by Anders Hejlsberg and his team within the .Net initiative and was approved by the European Computer Manufacturers Association (ECMA) and International Standards Organization (ISO). C#
2 min read
How to Install Visual C++ in MacOS?
Visual C++ is Software made by Microsoft Corporation. It is used to build desktop applications using the C and C++ languages. It was initially released in February 1993. In this article, we are going to learn how we can install Visual C++ in our Mac operating system. Installing Visual C++on MacOS: Follow the below steps to install macOS Step 1: Ope
1 min read
Guide to Install and Setup Visual Studio for Android App Development
To start developing Android applications, one has to set up a proper development environment. It facilitates developers to use the tools needed in creating an app and ensure that all operations/processes carried out in a smooth manner. An IDE(Integrated Development Environment) is a complete application suite that provides services like writing and
4 min read
How to Download and Install Visual Studio Code on Ubuntu?
Visual Studio Code is a code editor that is basically used for web development or cloud platforms, but nowadays Visual Studio Code can do a lot. It is stated as the second most used code editor by developers in 2022 so if you are an aspiring IT student or a developer you should know how to use Visual Studio Code. Let's learn how to install Visual S
1 min read
How to Install Flutter on Visual Studio Code?
In this article, we will walk through the process of installing Flutter in Visual Studio Code. Flutter is an open-source portable UI framework for mobile, desktop, and web. It is developed and managed by Google, Flutter is used for creating a high-quality, beautiful, and fast native interface for android and iOS from a single codebase. The interfac
4 min read
How to Install Kotlin on MacOS using Visual Studio Code?
Kotlin is a modern statically typed and open source programming language that features both object-oriented and functional programming constructs. Over 60% of professional Android developers use Kotlin that helps boost productivity, developer satisfaction, and code safety. Features of Kotlin: Kotlin is Open-Source.Kotlin Supports Full Java Interope
2 min read
How to Install and Use Packages in Visual Studio for MacOS?
In this article, we will learn how to install and use a package in Visual Studio for MacOS. Visual Studio is an Integrated Development Environment(IDE) developed by Microsoft to develop GUI(Graphical User Interface), console, Web applications, web apps, mobile apps, cloud, web services, etc. Native code can be managed with the help of IDE. It uses
2 min read