C and C++ compilers not found

I am on CLion 1.2.4 and I cannot get the program to build. I believe the probliem is that it does not find any compilers. I have it using Cygwin and I downloaded all of the packages I need (to my knowledge), but I still see the following:

no compilers.PNG

Here I changed the CMake compiler paths to be a working path for gcc. I can compile code with this executable myself in the terminal.

paths.PNG
When I try and run the program I get a message like "11:56:27 PM Build failed in 1s 532ms" in the event log with no other sign of what actually happened.

If anyone can help me get CLion to build and run my project it would be much appreciated.

3 comments
Comment actions Permalink

Root and type as below in Terminal:

apt-get install gcc
apt-get install g++

and open CLion again.

2
Comment actions Permalink

According to my knowledge and what I could find on Google, Cygwin does not have a root or apt-get. Let me know if I'm wrong.

Shouldn't the install and package manager exe cover this anyway?

0
Comment actions Permalink

Hi Ben.

Do you still have the issue?

In general you have two options on Windows: Cygwin or MinGW. More details on how to configure these toolchains:

• Cygwin: Get the latest available 64-bit version and make sure to select gcc/g++, cmake, make and gdb 7.8 while installing the packages.
• MinGW: CLion currently supports MinGW and MinGW-w64. See the compatible versions list in our quick start guide.
In addition, don’t forget to install make and gcc/g++ packages from MinGW toolchain to make it work with CLion.
Also there is a community video: https://www.youtube.com/watch?v=00_Nj94aDQk.

0

Please sign in to leave a comment.