全局命名空间中没有名为“snprintf”的成员

时间:2015-11-26 08:18:10

标签: c++ cmake freebsd poco-libraries

我正在尝试在FreeBSD上构建Poco(作为superbuild的一部分)但是正在

(使用-std = c ++ 11构建)

[  0%] Building CXX object Foundation/CMakeFiles/Foundation.dir/src/AbstractObserver.cpp.o
In file included from /home/heather/A/SB/MITK-superbuild/ep/src/Poco/Foundation/src/AbstractObserver.cpp:17:
In file included from /home/heather/A/SB/MITK-superbuild/ep/src/Poco/Foundation/include/Poco/AbstractObserver.h:23:
In file included from /home/heather/A/SB/MITK-superbuild/ep/src/Poco/Foundation/include/Poco/Foundation.h:148:
In file included from /home/heather/A/SB/MITK-superbuild/ep/src/Poco/Foundation/include/Poco/Bugcheck.h:24:
In file included from /usr/include/c++/v1/string:437:
/usr/include/c++/v1/cstdio:143:9: error: no member named 'snprintf' in the global namespace
using ::snprintf;
      ~~^
/usr/include/c++/v1/cstdio:148:9: error: no member named 'vfscanf' in the global namespace; did you mean 'fscanf'?
using ::vfscanf;

我该如何解决?我无法使用端口中的poco,因为它不会安装PocoConfig.cmake

0 个答案:

没有答案