КАК ДА ИНСТАЛИРАМЕ КОМПИЛАТОРА КЛАНГ / CLANG / НА НАШИЯТ КОМПЮТЪР ????
ПРОГРАМА ЗА ПРОВЕРКА НА КОДА ЗА С/С++ ЗА ПРОГРАМИСТИ НАЧИНАЕЩИ И НАПРЕДНАЛИ И ВСЯКАКВИ ДРУГИ НИНДЖИ В ИТ СЕКТОРА :)
http://karadev.net/CLANG_STUDENT_PROGRAMMING/ <> линк за сваляне на програмта и файлове за тест на с / с++ кодове
гитхъб линк = https://github.com/karadevnet/CLANG_WINDOWS_10 <> как да инсталирате MSYS2 със компилатора CLANG без да се налага да имате визуал студио код или 2022. ;) много добро и работи :)
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.
- Run the installer and let it complete the installation automatically.
Default installation path : C:\msys64\mingw64\bin
Step 2: Install Clang Package
- Open MSYS2 terminal (it should open automatically after installation).
- 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
- Run CMD as Administrator: - Right-click on **cmd.exe** and select Run as Administrator. - You can also search for cmd in the **Start menu**.
- 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
- Navigate to your project folder.
- Place CLANG_WINDOWS_10.exe inside the folder.
- Start CLANG_WINDOWS_10.exe.
- Verify installation by running:
C:\Users\username>clang --version
Additional Resources
- Download test files from the same GitHub repository/RELEASES.
- 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/