Skip to content


CodeLite is built using clang++ from the MSYS2 environment and it is the recommended compiler to use on Windows. This page provides instructions for how to setup a functional working environment using the MSYS2 shell.


  • Download and install MSYS2, set the installation folder to C:\msys64
  • Open MSYS2 terminal, and install the following packages:
pacman -Sy git                                  \
           openssh                              \
           mingw-w64-clang-x86_64-gdb           \
           mingw-w64-clang-x86_64-toolchain     \
           mingw-w64-clang-x86_64-python3       \
           mingw-w64-clang-x86_64-cmake         \
           mingw-w64-clang-x86_64-libffi        \
           mingw-w64-clang-x86_64-jq            \
           mingw-w64-clang-x86_64-libxml2       \
  • Next, still in the MSYS2 terminal, Add the /clang64/bin to your ~/.bashrc and source it:
echo 'export PATH=/clang64/bin:$PATH' >> ~/.$(basename $SHELL)rc
. ~/.$(basename $SHELL)rc
  • If you choose to work with CMD, create a script with the following content, name it MinGW.bat and place it on your desktop:
@echo off
title [64 bit] MinGW CMD Shell
set PATH=C:\msys64\usr\bin;%PATH%
set PATH=C:\msys64\clang64\bin;%PATH%
set PATH=C:\Program Files\CodeLite;%PATH%

Optional setup


  • Setup pip for python:
cd /tmp
/clang64/bin/python3 /tmp/
rm -f /tmp/
  • Install debugger, language server and formatter for python:
# Python code completion provider
/clang64/bin/python3 -m pip install python-lsp-server --upgrade

# Python formatter tool
/clang64/bin/python3 -m pip install black --upgrade

# Python debugger
/clang64/bin/python3 -m pip install debugpy --upgrade


# installs cargo, rustfmt, clippy etc
pacman -S mingw-w64-clang-x86_64-rust