天天看点

fatal error: gnu/stubs-n64_hard_2008.h: No such file or directory

错误如下:

/usr/include/mips64el-linux-gnuabi64/gnu/stubs.h:41:11: fatal error: gnu/stubs-n64_hard_2008.h: No such file or directory
 # include <gnu/stubs-n64_hard_2008.h>
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ERROR: libass not found using pkg-config      

经过搜索,发现没有这个文件,而是有stubs-n64_hard.h

于是查看了宏定义:__mips_nan2008

这是怎么来的?

解决办法:

  • 在代码中加一个undfine
  • 传递一个正确参数
  • 直接修改文件。

继续阅读