您当前的位置: 首页 >  linux

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

LINUX下载编译commoncpp/ucommon

柳鲲鹏 发布时间:2020-05-17 08:06:46 ,浏览量:0

  • 下载

http://ftp.gnu.org/gnu/commoncpp/

  • 解压
  • 编译commoncpp
BUILD_LIBS=${HOME}/build_libs
 
./configure \
     --prefix=${BUILD_LIBS}
 
make
make install
  • 编译 ucommon
BUILD_LIBS=${HOME}/build_libs
 
./autogen.sh

./configure \
     --prefix=${BUILD_LIBS}
 
make
make install
  • 错误

提示找不到S_IREAD/S_IWRITE。打开applog.cpp,加入

#include

  • 错误

无法解决,反复尝试修改,其他版本,都失败。

In file included from object.cpp:21:0:
../inc/ucommon/object.h: In member function ‘const T* ucommon::sarray::at(unsigned int) const’:
../inc/ucommon/object.h:298:64: error: no matching function for call to ‘ucommon::sarray::get(unsigned int&) const’
         {return static_cast(SparseObjects::get(offset));}
                                                                ^
../inc/ucommon/object.h:238:21: note: candidate: ucommon::ObjectProtocol* ucommon::SparseObjects::get(unsigned int) 
     ObjectProtocol *get(unsigned offset);
                     ^~~
../inc/ucommon/object.h:238:21: note:   passing ‘const ucommon::sarray*’ as ‘this’ argument discards qualifiers

 

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0669s