
我发现GCC中的一个错误迫使我切换编译器,我别无选择.该BUG与gcc如何处理堆栈对齐有关. Clion似乎只支持Windows上的minigw和cygwin,我相信它们都是使用gcc编译器的工具集.
是否有一种简单的方法可以让Clion / cmake使用不同的编译器?我已经读过clang与GCC非常相似,因为它接受相同的编译器标志,所以我想知道这是否是一个很好的选择.我还读过你可以通过更改一些标志来改变cmake使用的编译器,但我不知道在哪个文件中放置它,或者如果更改它会破坏与Clion的兼容性.
解决方法 从 CLion’s FAQ起At present Clion supports GCC and Clang compilers and is guIDed by these two to get the librarIEs and headers paths. In the next releases we are planning to extend the List of compilers available in Clion.
To change the compiler,go to the Cache tab in CMake tool window and set the compiler’s path to theCMAKE_CXX_COMPILERvariable. Then press Enter and click the Apply Changes and Reload button:
总结Search our issue tracker for feature requests about supporting other compilers to follow or Vote on them,or add a new one if it’s missing.
以上是内存溢出为你收集整理的c – 在Windows上将除GCC之外的其他编译器附加到Clion IDE全部内容,希望文章能够帮你解决c – 在Windows上将除GCC之外的其他编译器附加到Clion IDE所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)