
Set(CMAKE_CXX_FLAGS "$ -g -Wall -Wextra -Wno-sign-compare")Ĭppcheck should give a warning for "int *x = new int " indicating memory leak # have compiler give warnings, but not for signed/unsigned
CLION GITHUB FOR MAC
Install CLion, assuming Msys2 has already been set as above for Windows or necessary programs installed for Mac

CLION GITHUB UPDATE
Install MSys2 on default directory C:\msys64 Follow the instructions on the web page, especially about 'pacman -Syu' to update package database and core system.(if you do this after installing Msys2, move files fromĬ:\msys64\home\pisan to C:\Users\pisan manually With %USERPROFILE% - this will make Msys2 start in the windows directory System Settings > Environment Variables, Add new user variable HOME Right Click on Start > System > Search for View Advanced.ItĪlso helps install additional programs easily. Msys2 which provides a unix like environment under Windows. Multiple options (MinGw, Cygwin, etc) but my preferred one is

You need to have g++ and gcc already installed. Similar features to CLion, so modify the instructions as needed to getĬLion relies on external programs for compilation which means Visual Studio, Eclipse and other IDEs have Have also included details of my Windows development environment since My preferred development environment for C++ is CLion running on Mac. Setting up your development environment is not a quick task,īut if done right it can save you hundreds of hours. Setting up your Development Environment Setting up your Development Environment
