错误 C2039: 'session': 不是 'pjsua_call' 的成员

error C2039: 'session' : is not a member of 'pjsua_call'

本文关键字:call 成员 session C2039 错误 不是 pjsua      更新时间:2023-10-16

我正在尝试制作pjsip的dll。

一切都很顺利,但当我在包括pjsipDll后构建项目时,我面临这个错误:

错误C2039: 'session':不是'pjsua_call'的成员。这是通过这一行的pjsipdll。cpp来的:

if(pjsua_var.calls[call_id].session == NULL)

查看输出选项卡后,它向我展示了pjsua_internal.h中pjsua_call的声明。在pjsua_call的结构声明中,会话没有定义。所以请告诉我如何解决这个错误??

thanks in advance

编译器是正确的,.session不是psjua_call的成员。为什么你认为应该有一个session成员?