在使用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)

 

相关文章:

  • 2021-04-11
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-04-05
猜你喜欢
  • 2021-09-29
  • 2022-12-23
  • 2021-06-29
  • 2021-07-10
  • 2022-12-23
  • 2021-11-17
  • 2021-07-17
相关资源
相似解决方案