The C compiler "/usr/bin/cc" is not able to compile a simple test program. 解决方法


在使用cmake编译工具的时候,莫名其妙的报了The C compiler "/usr/bin/cc" is not able to compile a simple test program.这个错误

解决方法:

加入下面两个选项

-DCMAKE_CXX_COMPILER=$(which g++) -DCMAKE_C_COMPILER=$(which gcc)

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM