/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[2]: *** [ts_calibrate.o] Error 1
make[2]: Leaving directory `/root/soft/tslib/ts_lib/tslib/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/soft/tslib/ts_lib/tslib'

make: *** [all] Error 2

 

解决办法:将open函数的修改如下:

cal_fd = open ("/etc/pointercal", O_CREAT | O_RDWR ,0);

 

 


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-02-26
  • 2021-04-11
  • 2021-08-20
  • 2022-12-23
  • 2022-01-13
  • 2021-06-21
  • 2022-12-23
相关资源
相似解决方案