Installing C++ compiler GCC, Clang, Visual Studio, or Code::Blocks In Hindi

Installing C++ compiler GCC, Clang, Visual Studio, or Code::Blocks In Hindi

C++ प्रोग्रामिंग लैंग्वेज में नए प्रोग्राम क्रिएट करने और रन करने के लिए, C++ यूजर को एक C++ कंपाइलर सॉफ्टवेयर एप्लीकेशन को अपने कंप्यूटर में इन्सटाल्ड करने की ज़रूरत होती है। किसी डेस्कटॉप या लैपटॉप कंप्यूटर में इन्सटाल्ड एक कंपाइलर एप्लीकेशन सॉफ्टवेयर C++ प्रोग्राम सोर्स कोड को मशीन-रीडेबल एग्जीक्यूटेबल सोर्स कोड या फ़ाइलों में कन्वर्ट करता है।

Installing C++ compiler GCC, Clang, Visual Studio, or CodeBlocks In Hindi

Popular C++ compilers and development environments today.

  • GNU Compiler Collection (GCC).
  • Clang Compiler.
  • Microsoft Visual Studio.
  • Code::Blocks Compiler.

Installing the GCC compiler on Windows, Linux and macOS.

What is the GCC compiler?

GNU कंपाइलर कलेक्शन एक फ्री और ओपन-सोर्स C++ कंपाइलर एप्लीकेशन सॉफ्टवेयर है. जो आपको C और C++ जैसी प्रोग्रामिंग लैंग्वेज के लिए प्रोग्राम कोड लिखने और रन करने के लिए लार्ज लेवल पर यूज़ किया जाता है।

GCC compiler installation setup on Windows.

अपने कंप्यूटर में तरीका MinGW फाइल का यूज़ करना।

Step 1:

सबसे पहले आप GCC कंपाइलर की ऑफिशियल MinGW वेबसाइट को ओपन करे.

Step 2:

GCC MinGW इंस्टॉलर को अपने कंप्यूटर में डाउनलोड करें।

Step 3:

अब डाउनलोड लोकेशन GCC MinGW से इंस्टॉलर को सलेक्ट कर रन करे.

  • आर्किटेक्चर: x86_64
  • थ्रेड्स: posix
  • एक्सेप्शन: seh

Step 4:

अब अपने कंप्यूटर में GCC MinGW कंपाइलर को इंस्टॉल करें।

Step 5:

अपने कंप्यूटर के दिस पीसी में सिस्टम PATH में बिन फ़ोल्डर लोकेशन को ऐड करे।

जैसे:

C:\mingw64\bin

Step 6:

अब अपने कंप्यूटर में कमांड प्रॉम्प्ट या कंसोल एप्लीकेशन को ओपन करे और GCC MinGW इंस्टॉलेशन को वेरिफ़ाई करें।

g++ –version

GCC compiler installation on Linux.

आज के समय में मॉडर्न लिनक्स ऑपरेटिंग सिस्टम डिस्ट्रीब्यूशन वर्जन में पहले से ही GCC कंपाइलर इन्क्लुड या इन्सटाल्ड होते है।

In Ubuntu/Debian, install the GCC compiler.

sudo apt update

sudo apt install g++

Verify the GCC compiler installation.

g++ –version

GCC compiler installation on macOS.

अपने एप्पल मैक ओएस में Xcode कमांड लाइन टूल्स का यूज़ करके GCC कंपाइलर को इंस्टॉल करें।

xcode-select –install

Verify the GCC compiler installation.

g++ –version

Installing the Clang compiler on Windows, Linux, or macOS.

What is the Clang compiler?

Clang LLVM पर बेस्ड एक मॉडर्न C++ कंपाइलर सॉफ्टवेयर है। Clang कंपाइलर एक फ़ास्ट प्रोग्राम कम्पाइलेशन और इम्प्रूव प्रोग्राम एरर मैसेज को डिस्प्ले करता है।

Clang C++ Compiler Windows Installation.

Step 1:

सबसे पहले आप Clang वेबसाइट को विज़िट करें।

इसके बाद LLVM को ऑफ़िशियल वेबसाइट पर मूव करे.

Step 2:

अपने कंप्यूटर में माइक्रोसॉफ्ट विंडोज के लिए Clang LLVM इंस्टॉलर को डाउनलोड करें।

Step 3:

अपने डेस्कटॉप या लैपटॉप कंप्यूटर में Clang LLVM इंस्टॉलर को रन करे और इनेबल करें।

“Add LLVM to system PATH”

Step 4:

अपने कंप्यूटर में Clang LLVM इंस्टॉलेशन को वेरिफ़ाई करें।

clang++ –version

Installing Clang LLVM on Linux.

In Ubuntu/Debian, install the Clang LLVM compiler.

sudo apt install clang

Verify the Clang LLVM compiler installation.

clang++ –version

Installing Clang LLVM on macOS.

एप्पल मैक ओएस में Clang LLVM, Xcode टूल्स के साथ पहले से इन-बिल्ट इंस्टॉल आता है।

Verify the Clang LLVM compiler installation.

clang++ –version

Installing Visual Studio on Microsoft Windows.

What is Microsoft Visual Studio?

माइक्रोसॉफ्ट विज़ुअल स्टूडियो विंडोज ऑपरेटिंग सिस्टम के लिए एक पावरफ़ुल और बेस्ट ग्राफिकल आईडीई सॉफ्टवेयर एक कम्पलीट एप्लीकेशन है. जिसमें आपको C++ कंपाइलर, डीबगर, और एडिटर इसके साथ कई टूल्स और फीचर्स मिलते हैं।

Microsoft Visual Studio Installation Steps.

Step 1:

सबसे पहले आप Visual Studio ऑफ़िशियल वेबसाइट को ओपन करे.

Step 2:

अपने विंडोज ऑपरेटिंग सिस्टम के लिए Visual Studio कम्युनिटी एडिशन (फ़्री) वर्जन को डाउनलोड करें।

Step 3:

अब अपने कंप्यूटर में डाउनलोड Microsoft Visual Studio इंस्टॉलर सेटअप को चलाएं।

Step 4:

अपने ऑपरेटिंग सिस्टम के अनुसार वर्कलोड को चुनें:

C++ के साथ डेस्कटॉप डेवलपमेंट एनवायरनमेंट को सलेक्ट करे.

Step 5:

अब अपने कंप्यूटर में इंस्टॉल पर क्लिक करें।

Create and run your first C++ program.

1. अपने कंप्यूटर में इन्सटाल्ड माइक्रोसॉफ्ट विज़ुअल स्टूडियो को ओपन करे ।

2. create:

o एक नया प्रोजेक्ट → कंसोल एप्लीकेशन सलेक्ट करे.

3. अपना डिजायर C++ प्रोग्राम कोड को लिखें।

4. C++ प्रोग्राम कोड को चलाने के लिए.

o Ctrl + F5 दबाएँ की को प्रेस करे।

Installing Code::Blocks on your computer.

What is the Code::Blocks IDE application?

Code::Blocks एक लाइटवेट C++ प्रोग्राम आईडीई सॉफ्टवेयर है. जिसे सामान्य रूप से C++ बिगिनर यूजर यूज़ करते हैं।

Installation Steps for Code::Blocks:

1. सबसे पहले Code::Blocks की मैन वेबसाइट को विज़िट करें।

Code::Blocks की ऑफिशियल वेबसाइट पर जाए.

2. अब अपने मौजूदा ऑपरेटिंग सिस्टम के अनुसार Code::Blocks वर्जन को डाउनलोड करें।

o MinGW के साथ Code::Blocks के साथ इंस्टालेशन।

o यहाँ इस पैकेज में पहले से ही GCC कंपाइलर इन्क्लुड होता है।

3. Code::Blocks सॉफ्टवेयर को अपने कंप्यूट में इंस्टॉल करें।

4. अब यहाँ Code::Blocks एप्लीकेशन को ओपन करे।

5. अब एक नया कंसोल प्रोजेक्ट क्रिएट करे।

Testing the Code::Blocks compiler.

अपने कंप्यूटर में Code::Blocks आईडीई कंपाइलर इंस्टॉलेशन के बाद, अब एक सिंपल C++ प्रोग्राम क्रिएट कर उसे टेस्ट करें।

#include <iostream>

using namespace std;

int main() {

cout << “Hello, World!”;

return 0;

}

Code::Blocks में बने प्रोग्राम को कंपाइल करें और उसे अपने कंप्यूटर में चलाएँ।

प्रोग्राम आउटपुट।

Hello, Welcome to the C++ programming World

Detail Comparison of popular C++ ide Compilers

#Compiler/IDESupported PlatformUnique Features
1.GCC compilerWindows, Linux, macOS, operating systemIt is very Fast, open-source software
2.Clang compilerWindows, Linux, macOS, operating systemDisplay Better error messages in console screen
3.Visual Studio ideOnly Microsoft Windows operating systemPowerful IDE and debugger for windows operating system user
4.Code::Blocks ideWindows, Linux, macOS, operating systemBeginner-friendly IDE for novice user

Conclusion of Installing a C++ compiler (GCC, Clang, Visual Studio, or Code::Blocks).

अपने मौजूदा कंप्यूटर में C++ कंपाइलर आईडीई सॉफ्टवेयर इंस्टॉल करना C++ प्रोग्रामिंग लर्निंग फेज में फर्स्ट स्टेप है। बिगिनर C++ यूजर ज्यादातर Code::Blocks या Microsoft Visual Studio से C++ प्रोग्राम डेवलपमेंट स्टार्ट करते हैं. जबकि प्रोफेशनल C++ यूजर सामान्य रूप से एडवांस्ड C++ डेवलपमेंट के लिए GNU Compiler Collection या Clang जैसे सॉफ्टवेयर कंपाइलर का यूज़ करते हैं।

Leave a Reply