如何在 CLion 中设置 -v 编译器选项并查看各自的结果
How to set -v compiler option in CLion and see respective results
在 CLion 中 linking 我的 C++ 代码时出现以下错误:
"clang: error: linker command failed with exit code 1 (use -v to see invocation)" 由于未能找到架构 link 对象 x86_64。
如何设置 -v 选项(linking 或编译选项???)以及如何查看各自的结果(调用)?
一般来说,我可以在 CLion 的什么地方看到编译器实际在做什么,例如它使用了哪些标志,编译了哪些文件,linked,等等
确保通过
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
在 CMake 配置中
CLion | Preferences | Build, Execution, Deployment | CMake
在 CLion 中 linking 我的 C++ 代码时出现以下错误:
"clang: error: linker command failed with exit code 1 (use -v to see invocation)" 由于未能找到架构 link 对象 x86_64。
如何设置 -v 选项(linking 或编译选项???)以及如何查看各自的结果(调用)?
一般来说,我可以在 CLion 的什么地方看到编译器实际在做什么,例如它使用了哪些标志,编译了哪些文件,linked,等等
确保通过
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
在 CMake 配置中
CLion | Preferences | Build, Execution, Deployment | CMake