c++ 尝试从aws包含AudioStream.h时出错

cld4siwp  于 2023-04-01  发布在  iOS
关注(0)|答案(1)|浏览(141)

当我尝试遵循this aws real time streaming example的示例时
为什么我得到以下错误

/usr/local/include/aws/transcribestreaming/model/AudioStream.h:47:36: error: calling 'Jsonize' with incomplete return type 'Aws::Utils::Json::JsonValue'
       msg.WriteEventPayload(value.Jsonize().View().WriteCompact());
                             ~~~~~~^~~~~~~~~
/usr/local/include/aws/transcribestreaming/model/ConfigurationEvent.h:40:68: note: 'Jsonize' declared here
    AWS_TRANSCRIBESTREAMINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
                                                                   ^
/usr/local/include/aws/transcribestreaming/model/PostCallAnalyticsSettings.h:18:9: note: forward declaration of 'Aws::Utils::Json::JsonValue'
  class JsonValue;
        ^
In file included from audiopa.cpp:4:
/usr/local/include/aws/transcribestreaming/model/AudioStream.h:47:45: error: member access into incomplete type 'Aws::Utils::Json::JsonValue'
       msg.WriteEventPayload(value.Jsonize().View().WriteCompact());
                                            ^
/usr/local/include/aws/transcribestreaming/model/PostCallAnalyticsSettings.h:18:9: note: forward declaration of 'Aws::Utils::Json::JsonValue'
  class JsonValue;

我真的不知道为什么会发生这种情况,因为我只是按照所给的例子,这个问题发生,即使我只有

#include <aws/transcribestreaming/model/AudioStream.h>

相关问题