如何解决NO ARGUMENTS THATmake dependD ON A TEMPLATE PARAMETER

Scribe在CentOS 5.8上编译不过的解决办法_Linux教程_Linux公社-Linux系统门户网站
你好,游客
Scribe在CentOS 5.8上编译不过的解决办法
来源:Linux社区&
作者:skykingf
安装环境:& 5.8&boost 1.5.3&thrift 0.9.0&编译时的错误提示:
/usr/local/include/thrift/protocol/TBinaryProtocol.tcc: In member function 'uint32_t apache::thrift::protocol::TBinaryProtocolT&Transport_&::writeI16(int16_t)':/usr/local/include/thrift/protocol/TBinaryProtocol.tcc:147: error: there are no arguments to 'htons' that depend on a template parameter, so a declaration of 'htons' must be available/usr/local/include/thrift/protocol/TBinaryProtocol.tcc:147: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)/usr/local/include/thrift/protocol/TBinaryProtocol.tcc: In member function 'uint32_t apache::thrift::protocol::TBinaryProtocolT&Transport_&::writeI32(int32_t)':/usr/local/include/thrift/protocol/TBinaryProtocol.tcc:154: error: there are no arguments to 'htonl' that depend on a template parameter, so a declaration of 'htonl' must be available/usr/local/include/thrift/transport/TSocket.h: At global scope:/usr/local/include/thrift/transport/TSocket.h:219: error: expected ';' before '*' token/usr/local/include/thrift/transport/TSocket.h:240: error: expected ',' or '...' before '*' token/usr/local/include/thrift/transport/TSocket.h:293: error: 'sockaddr_in' does not name a type/usr/local/include/thrift/transport/TSocket.h:294: error: 'sockaddr_in6' does not name a type/usr/local/include/thrift/server/TNonblockingServer.h:780: error: expected ',' or '...' before '*' tokenstore.cpp: In member function 'void BufferStore::setNewRetryInterval(bool)':store.cpp:1681: warning: comparison between signed and unsigned integer expressionsstore.cpp:1693: warning: comparison between signed and unsigned integer expressionsstore.h: In constructor 'NetworkStore::NetworkStore(StoreQueue*, const std::string&, bool)':store.h:407: warning: 'NetworkStore::opened' will be initialized afterstore.h:401: warning:&
'time_t NetworkStore::lastServiceCheck'store.cpp:1743: warning:&
when initialized heremake[3]: *** [store.o] Error 1make[3]: Leaving directory `/root/download/scribe/src'make[2]: *** [all] Error 2make[2]: Leaving directory `/root/download/scribe/src'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/root/download/scribe'make: *** [all] Error 2
解决办法:&export CPPFLAGS="-DHAVE_NETDB_H=1 -fpermissive"&./bootstrap.sh&./configure
更多CentOS相关信息见 专题页面
相关资讯 & & &
& (03月01日)
& (07/23/:44)
& (07/23/:35)
& (12/18/:06)
   同意评论声明
   发表
尊重网上道德,遵守中华人民共和国的各项有关法律法规
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
本站管理人员有权保留或删除其管辖留言中的任意内容
本站有权在网站内转载或引用您的评论
参与本评论即表明您已经阅读并接受上述条款2005年2月 C/C++大版内专家分月排行榜第二
2012年1月 扩充话题大版内专家分月排行榜第三
2005年2月 C/C++大版内专家分月排行榜第三
本帖子已过去太久远了,不再提供回复功能。下次自动登录
现在的位置:
& 综合 & 正文
there are no arguments to ‘***’ that depend on a template parameter, so a declaration of
linux下会出现如下错误:
there are no arguments to '***' that depend on a template parameter, so a declaration of '***' must be available
错误:‘×××’ 的实参不依赖模板参数,所以 ‘×××’ 的声明必须可用
需要在×××之前增加范围标识,参考
::foo(double) and A::N
&&&&推荐文章:
【上篇】【下篇】}

我要回帖

更多关于 depend on 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信