分享

Open wrt 编译错误elf.cpp:68:5: error: '::close' has not been declared:

 dwlinux_gs 2015-03-24

elf.cpp:68:5: error: '::close' has not been declared:

参考trunk的源码和此问题"https://dev./ticket/45"

修改 ./build_dir/host/mklibs/src/mklibs-readelf/elf.cpp


  1. #include "elf_data.hpp"

  2. #include <stdexcept>

  3. #include <fcntl.h>
  4. #include <sys/mman.h>
  5. #include <sys/stat.h>
复制代码
下面添加一行"#include <unistd.h>"成:

  1. #include "elf_data.hpp"

  2. #include <stdexcept>

  3. #include <fcntl.h>
  4. #include <sys/mman.h>
  5. #include <sys/stat.h>
  6. #include <unistd.h>
复制代码
解决问题。

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多