Search code examples
cmakecompiler-errorsc++14clion

I have a compiler error for Cmake, what should I do?


For the past two days, I’ve been trying to start coding C++ on CLion and I’ve been running into problems with Cmake. Any recommendations would be appreciated. I tried deleting CLion and redownloading, and I've tried putting in different Cmake options I found online for C++. Any help would be appreciated.

Short video of problem


Solution

  • You have to install a compilers into command line as well. I guess the XCode is already installed. In addition you need to install command line tools via 'xcode-select --install' (maybe with sudo) to get while compilers toolchain in console too. You can check if compiler works in terminal via e.g. 'clang --version' etc. Anyway, please keep clear info about your dev. environment when you are asking..