Clion 遇到的问题/bug 记录
Build的时候出错
错误信息
Determining if the C compiler works failed with the following output:Change Dir: D:/project/assemble/proj3 + exam/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_ff802/fast && C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_ff802.dir\build.make CMakeFiles/cmTC_ff802.dir/build
mingw32-make.exe[1]: Entering directory 'xxx'
Building C object CMakeFiles/cmTC_ff802.dir/testCCompiler.c.obj
C:\MinGW\bin\gcc.exe -o CMakeFiles\cmTC_ff802.dir\testCCompiler.c.obj -c "xxx"
拒绝访问。
CMakeFiles\cmTC_ff802.dir\build.make:87: recipe for target 'cmTC_ff802.exe' failed
mingw32-make.exe[1]: * [cmTC_ff802.exe] Error** 1
mingw32-make.exe[1]: Leaving directory 'xxx'
Makefile:120: recipe for target 'cmTC_ff802/fast' failed
mingw32-make.exe: * [cmTC_ff802/fast] Error** 2
问题记录
在某次写码的时候开始短短续续的出现无法成功build的错误 会在 --broken
那个参数的命令停下来 ,然后会输出一堆乱码…,最后索性一次都无法build成功
在一顿google操作之后发现并没有特别相似的问题…
查看log发现 拒绝访问
怀疑是权限不够,尝试使用管理员权限开Clion编译..成功
解决方案
使用管理员权限打开Clion
The file does not belong to any target…
错误信息
在代码编辑区上方提示这个信息
问题记录
谷歌说重新弄CMakeLists.txt
等, 尝试多种方案无果
解决方案
删掉.idea文件夹,重新编译等等…
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。