编译steup.sh时,出现c和c++转换错误
Created by: jiaozhusos
如题,使用win7系统编译setup.sh时,出现以下警告和错误: cc1plus: 警告:command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ cc1plus: 警告:command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ cc1plus: 警告:command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ cc1plus: 警告:command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ cc1plus: 警告:command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ kenlm/util/exception.cc: 在构造函数‘util::ErrnoException::ErrnoException()’中: kenlm/util/exception.cc:78:62: 错误:‘strerror_r’在此作用域中尚未声明 const char *add = HandleStrerror(strerror_r(errno, buf, 200), buf);
主要是因为c和c++转换的问题,是缺少了某个库吗,还是什么原因?