c - Clion: Error running 'makefile': Cannot build 'makefile'
问题描述
I have not seen any thread talk about this specific error so here is the problem:
I have set up a C project in Clion and I configured in Setting -> Build,Execution,Deployment -> Toolchains
a file usr/bin/make as the Make
.
I could run my code yesterday but today, i get the warning in a red window popping-up: Error running 'makefile': Cannot build 'makefile'
when I try to run my code.
What could possibly cause this?
解决方案
It seems like you’re trying to run the makefile instead of the program that is built by it. Have you tried doing a build first? Or maybe you should try to clean the project too. Have a look a the blog post of JetBrains https://blog.jetbrains.com/clion/2020/06/makefile-projects-in-clion/. There’s a gif that shows how to clean the project. Hope this helps, if not maybe post your makefile so we can check if it has any errors.
推荐阅读
- string - Octave 中的函数 strfind() 未在文本文件中找到双换行符
- python - 用 Python 装饰一个类,打印装饰类的 int 变量
- android - 使用 Android 打开蓝牙会使其成为信标吗?
- arrays - 电子表格减少了二维范围内的 JS 类函数?
- c++ - 有没有办法抑制 cppclean 问题?
- javascript - 初始化前无法访问“节点”
- javascript - 当我悬停img标签以在他下方显示文本时如何制作动画
- python - Cython 魔术命令不会在 jupyter 笔记本中打印
- spring - 未找到 RestController 中的映射
- android - 此项目使用 AndroidX 依赖项,但未启用“android.useAndroidX”属性