VAPS XT入门教程20.01:inaccessible within this context

系列索引:VAPS XT入门教程索引

上一篇:

在Linux PC/RK3588S下编译软件依赖库时会出现这个错误。

1
2
3
4
5
6
7
8
9
10
11
12
13
In file included from ../vxtBaseClsVideoController.h:32,
from ../vxtBaseClsVideoController.cpp:11:
/home/hyper/VAPS_XT_4_2_1/src/XTObjects/VideoObjects/VideoSourceTableElement/vxtClsVideoSourceTableElement.h: At global scope:
/home/hyper/VAPS_XT_4_2_1/src/XTObjects/VideoObjects/VideoSourceTableElement/vxtClsVideoSourceTableElement.h:142:71: error: ‘class vxtRTDoubleListNodeT<vxtRTObject> vxtRTDoubleListNodeT<vxtRTObject>::vxtRTDoubleListNodeT’ is inaccessible within this context
142 | ct VXTCLSVIDEOSOURCETABLEELEMENT_SPEC ObserverNode : public vxtRTDoubleListNodeT<ObserverNode>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In file included from /home/hyper/VAPS_XT_4_2_1/src/RT/include/vxtRTObject.h:46,
from /home/hyper/VAPS_XT_4_2_1/src/RT/include/vxtRTTableElement.h:55,
from /home/hyper/VAPS_XT_4_2_1/src/XTObjects/VideoObjects/VideoSourceTableElement/vxtBaseClsVideoSourceTableElement.h:35,
from /home/hyper/VAPS_XT_4_2_1/src/XTObjects/VideoObjects/VideoSourceTableElement/vxtClsVideoSourceTableElement.h:35,
from ../vxtBaseClsVideoController.h:32,
from ../vxtBaseClsVideoController.cpp:11:

找到/home/hyper/VAPS_XT_4_2_1/src/XTObjects/VideoObjects/VideoSourceTableElement/vxtClsVideoSourceTableElement.h的142行

1
2
3
4
5
6
7
8
9
10
11
12
13
14
private:
struct ObserverNode;
struct VXTCLSVIDEOSOURCETABLEELEMENT_SPEC ObserverNode : public vxtRTDoubleListNodeT<ObserverNode>
{
ObserverNode() : pObj(VXT_NULL) {}

ObserverI *pObj;
};

// Disallow copy
Index(const Index &a_rOther);
Index& operator = (const Index &a_rOther);

ObserverNode m_ObserverNode;

修改为

1
struct VXTCLSVIDEOSOURCETABLEELEMENT_SPEC ObserverNode : public ::vxtRTDoubleListNodeT<ObserverNode>

问题原因未知。

下一篇:VAPS XT入门教程20.02:编译异常(Windows was unexpected at this time)

技术交流群,欢迎加入讨论。这个圈子很小,大佬可能没兴趣加这些群聊社区之类的。所以只能带你入门,当然,欢迎大佬指导

qq 672991841


VAPS XT入门教程20.01:inaccessible within this context
https://feater.top/vapsxt/inaccessible-with-this-context/
作者
JackeyLea
发布于
2024年1月18日
许可协议