使用下列选项
看到以下错误
qcc.compile.c++ bin.v2\libs\filesystem\build\qcc\release\link-static\operations.o libs\filesystem\src\operations.cpp: In function 'void boost::filesystem::detail::permissions(const boost::filesystem::path&, boost::filesystem::perms, boost::system::error_code*)': libs\filesystem\src\operations.cpp:1486:11: error: '::fchmodat' has not been declared
if (::fchmodat(AT_FDCWD, p.c_str(), mode_cast(prms),
^ cc: C:/Users/bilahari.akkiraju/qnx700/host/win64/x86_64/usr/lib/gcc/arm-unknown-nto-qnx7.0.0eabi/5.4.0/cc1plus caught signal 1
"QCC" -Wc,-ftemplate-depth-128 -Vgcc_ntoarmv7le -Y_gpp -Wc,-std=gnu++0x -D_LITTLE_ENDIAN -O3 -Wc,-finline-functions -Wc,-Wno-inline -DBOOST_ALL_NO_LIB=1 -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_SYSTEM_STATIC_LINK=1 -DNDEBUG -I"." -c -o "bin.v2\libs\filesystem\build\qcc\release\link-static\operations.o" "libs\filesystem\src\operations.cpp"
...failed qcc.compile.c++ bin.v2\libs\filesystem\build\qcc\release\link-static\operations.o... ...skipped <pbin.v2\libs\filesystem\build\qcc\release\link-static>libboost_filesystem.a for lack of <pbin.v2\libs\filesystem\build\qcc\release\link-static>operations.o... ...skipped <pstage\lib>libboost_filesystem.a for lack of <pbin.v2\libs\filesystem\build\qcc\release\link-static>libboost_filesystem.a ...failed updating 1 target ...skipped 2 targets...在我的windows 10机器上,有什么办法可以解决这个问题吗?
发布于 2018-11-12 14:09:54
我也有同样的问题。这是由boost调用QNX 7或更高版本中不存在的函数引起的。
对于这个问题有一个bug条目,有一个可能的解决方案:https://github.com/boostorg/filesystem/issues/89
简而言之:在第1482行的Boost 1.68.0中,在“filesystem/src/opers.cpp”中的函数“权限”中添加以下一行:
&& !(defined(__QNX__) && (_NTO_VERSION <= 700)) \
请注意,QNX 7或更高版本(_NTO_VERSION)有版本检查。修改以后的版本(请参阅版本描述)。
诚挚的问候
https://stackoverflow.com/questions/52284446
复制相似问题