КАК ДА ИНСТАЛИРАМЕ КОМПИЛАТОРА КЛАНГ / CLANG / НА НАШИЯТ КОМПЮТЪР ????

ПРОГРАМА ЗА ПРОВЕРКА НА КОДА ЗА С/С++ ЗА ПРОГРАМИСТИ НАЧИНАЕЩИ И НАПРЕДНАЛИ И ВСЯКАКВИ ДРУГИ НИНДЖИ В ИТ СЕКТОРА :)

http://karadev.net/CLANG_STUDENT_PROGRAMMING/ <> линк за сваляне на програмта и файлове за тест на с / с++ кодове

гитхъб линк = https://github.com/karadevnet/CLANG_WINDOWS_10 <> как да инсталирате MSYS2 със компилатора CLANG без да се налага да имате визуал студио код или 2022. ;) много добро и работи :)

Installing MSYS2 and Setting Up Clang

Step 1: Download and Install MSYS2

Download the latest installer: File: msys2-x86_64-20250221.exe OR get the latest version from MSYS2 Official Site.

  1. Run the installer and let it complete the installation automatically.

Default installation path : C:\msys64\mingw64\bin

Step 2: Install Clang Package

  1. Open MSYS2 terminal (it should open automatically after installation).
  2. Run the following commands to install Clang:
pacman -S mingw-w64-x86_64-clang
pacman -S mingw-w64-x86_64-clang-tools-extra

 

Step 3: Add Clang Path to System Variables

 

  1. Run CMD as Administrator: - Right-click on **cmd.exe** and select Run as Administrator. - You can also search for cmd in the **Start menu**.
  2. Add Clang to global PATH:

 

C:\Users\username>setx /M PATH "C:\msys64\mingw64\bin"

 

Restart your CMD to apply changes.

 

Step 4: Start Using Clang in Your Project

  1. Navigate to your project folder.
  2. Place CLANG_WINDOWS_10.exe inside the folder.
  3. Start CLANG_WINDOWS_10.exe.
  4. Verify installation by running:
C:\Users\username>clang --version

Additional Resources

  1. Download test files from the same GitHub repository/RELEASES.
  2. Ensure your project has both main.c and main.cpp if using C or C++.

install VS CODE from https://code.visualstudio.com/

load this clip from youtube :

How to setup Clang on windows and VS code for
C/C++ CLANG PROGRAMING <> https://www.youtube.com/watch?v=5OSO8IRlyXc

install Download the installer: msys2-x86_64-20250221.exe

OR LAST VERSION from site https://www.msys2.org/