1

I used Eclipse CDT for college lectures, but today I found the solution for C/C++ by JetBrains.

But I can't compile because I don't know how to set the compiler.

enter image description here

  • from your screenshot I see that you are using cmake. Did you install it? If not run sudo apt-get install cmake Also make sure that you have g++ on your system and gdb. sudo apt-get install build-essential gdb cmake – Dimitri Podborski Mar 15 '16 at 13:40
  • yes, I installed both (cmake and gdb cmake) :) – Claudiu Nicola Mar 15 '16 at 13:52
  • Okay, I didn't use clion but take a look on this site – Dimitri Podborski Mar 15 '16 at 14:02
0

to set the compiler used:

click the menu item 'project'

click the resulting pull down menu items 'properties'

in the resulting properties window

left column click c/c++ Build

in the resulting list click settings

in the third column enter the command for the desired compiler

in the second column click the desired compiler

in the resulting list click each entry and set the desired values

similar steps need to be performed for the desired linker

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.