Program not compiling

Completed

I started using clion as i need it for a project at university, i started by downloading mingw and clion detected it as my compiler. Managed to compile simple hello world program.

After i had to download an existing project  that was given to me and even tho it is working for all of my other colleagues it isnt working for me. Its a c++ project with built in google tests so we can test out our code.Here is the project https://drive.google.com/drive/folders/13BEPIQK_SKV6MV93tCgP4mLjUKuYxl8J?usp=sharing 

Scanning dependencies of target gtest
process_begin: CreateProcess(C:\Users\USER\AppData\Local\Temp\make10040-1.bat, C:\Users\USER\AppData\Local\Temp\make10040-1.bat, ...) failed.
[ 12%] make (e=2): The system cannot find the file specified.
Building CXX object lib/googletest-master/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.objmingw32-make.exe[3]: *** [lib\googletest-master\googletest\CMakeFiles\gtest.dir\build.make:63: lib/googletest-master/googletest/CMakeFiles/gtest.dir/src/gtest-all.cc.obj] Error 2
mingw32-make.exe[2]: *** [CMakeFiles\Makefile2:245: lib/googletest-master/googletest/CMakeFiles/gtest.dir/all] Error 2
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:85: CMakeFiles/aeda1920_fp01.dir/rule] Error 2
mingw32-make.exe: *** [Makefile:163: aeda1920_fp01] Error 2

 

This is the error i get, no clue how to fix so i'm stuck asking for help

0
3 comments

Hi!

On my side it fails latter (probably because perque.cpp is empty):

Please provide a screenshot of File | Settings | Build, Execution, Deployment | Toolchains.

0
Avatar
Permanently deleted user

I managed to fix this doing a clean install on linux so I guess i will just use ubuntu from now on for this specific project. The problem you stated was due to tests.cpp being uncomented. If you coment out the tests those errors will disappear

0

I'm glad you solved the issue! Thanks for letting us know.

0

Please sign in to leave a comment.