如何解决在Zero C Ice编译中的upCast错误?- Gcc - 4.7使用clang编译

How to solve the upCast error in Zero C Ice compilation? - Gcc - 4.7 compile with clang

本文关键字:编译 何解决 错误 upCast Gcc clang 使用 解决 Zero Ice      更新时间:2023-10-16

我必须构建杂音(Mumble VOIP客户端的服务器)。杂音和Mumble在其框架中使用了ZeroC Ice 3.4。我试着做杂音,却陷入了一个编译错误。

错误如下:

>/usr/include/Ice/Handle.h: In instantiation of ‘IceInternal::Handle<T>::Handle(T*) [with T = Ice::Communicator]’:
/usr/include/Ice/OutgoingAsync.h:49:16:   required from here
/usr/include/Ice/Handle.h:66:13: error: ‘upCast’ was not declared in this scope, 
and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

我试着用谷歌搜索了几次,但只有两个链接。没有一个能解决我的问题。我已经找到了一种方法来实现我的需求在低语和喃喃自语,但这个bug是让我发疯。

我希望至少有一个人遇到过这个问题并解决了。我真的需要一个解决杂音的方法。

谢谢。

使用google的强大功能,我发现你的问题很容易解决。

像这样搜索

将在这里产生突出的zeroC错误

链接到'grembo'(可能还有其他人)为gcc 4.7和clang编写的补丁

你可能需要在你的搜索引擎功夫。:)