I just downloaded CLion from https://www.jetbrains.com/ because I just love the rest of their products.
However, I'm having problems configuring it. I'm not able to compile and run my application (a simple "hello world").
When I try to run the application, it refers me to "Edit configuration", so I added a new application and now I have this problem:
The rest of the configuration looks optional.
My CMakeList.txt looks like:
cmake_minimum_required(VERSION 3.3)
project(test)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES test.c test.h)
add_executable(test ${SOURCE_FILES})
I tried to run this with "All targets". I also tried to set the executable. I tried everything, but I'm not able to make it work.
Can anyone advise?
This question is related to
gcc
g++
clion
jetbrains-ide
I met some problems in Clion and finally, I solved them. Here is some experience.
You can also use Microsoft Visual Studio compiler instead of Cygwin or MinGW in Windows environment as the compiler for CLion.
Just go to find Actions in Help and type "Registry" without " and enable CLion.enable.msvc Now configure toolchain with Microsoft Visual Studio Compiler. (You need to download it if not already downloaded)
follow this link for more details: https://www.jetbrains.com/help/clion/quick-tutorial-on-configuring-clion-on-windows.html
Source: Stackoverflow.com