军事研究员 2021-09-18 16:55 采纳率: 97%
浏览 34
已结题

问题-20190918-01:(C++编译报错)编译报错log如下,如何解决?

编译报错log如下,如何解决?


In file included from /home/msil/msil/workspace/lanfeiy/workSpace/projects/media/VoiceAssistant/src/VoiceAssistant.cpp:7:0:
/home/msil/msil/workspace/lanfeiy/workSpace/projects/media/VoiceAssistant/includes/VoiceAssistant.hpp:23:17: error: 'MediaTrackInfoExt' was not declared in this scope
     std::vector<MediaTrackInfoExt> getMetadataForTrackIds(const int32_t, std::vector<uint64_t>);
                 ^
/home/msil/msil/workspace/lanfeiy/workSpace/projects/media/VoiceAssistant/includes/VoiceAssistant.hpp:23:17: note: suggested alternative:
In file included from /home/msil/msil/workspace/lanfeiy/workSpace/projects/media/VoiceAssistant/includes/VoiceAssistant.hpp:10:0,
                 from /home/msil/msil/workspace/lanfeiy/workSpace/projects/media/VoiceAssistant/src/VoiceAssistant.cpp:7:
/home/msil/msil/workspace/lanfeiy/workSpace/projects/common-api/pub/MediaFramework/MediaTypes.hpp:349:20: note:   'com::clarion::media::MediaTrackInfoExt'
             struct MediaTrackInfoExt
                    ^
In file included from /home/msil/msil/workspace/lanfeiy/workSpace/projects/media/VoiceAssistant/src/VoiceAssistant.cpp:7:0:
/home/msil/msil/workspace/lanfeiy/workSpace/projects/media/VoiceAssistant/includes/VoiceAssistant.hpp:23:34: error: template argument 1 is invalid
     std::vector<MediaTrackInfoExt> getMetadataForTrackIds(const int32_t, std::vector<uint64_t>);
                                  ^
/home/msil/msil/workspace/lanfeiy/workSpace/projects/media/VoiceAssistant/includes/VoiceAssistant.hpp:23:34: error: template argument 2 is invalid
/home/msil/msil/workspace/lanfeiy/workSpace/projects/media/VoiceAssistant/src/VoiceAssistant.cpp:29:13: error: 'MediaTrackInfoExt' was not declared in this scope
 std::vector<MediaTrackInfoExt> VoiceAssistant::getMetadataForTrackIds(const int32_t, std::vector<uint64_t>)
             ^
/home/msil/msil/workspace/lanfeiy/workSpace/projects/media/VoiceAssistant/src/VoiceAssistant.cpp:29:13: note: suggested alternative:
In file included from /home/msil/msil/workspace/lanfeiy/workSpace/projects/media/VoiceAssistant/includes/VoiceAssistant.hpp:10:0,
                 from /home/msil/msil/workspace/lanfeiy/workSpace/projects/media/VoiceAssistant/src/VoiceAssistant.cpp:7:
/home/msil/msil/workspace/lanfeiy/workSpace/projects/common-api/pub/MediaFramework/MediaTypes.hpp:349:20: note:   'com::clarion::media::MediaTrackInfoExt'
             struct MediaTrackInfoExt
                    ^
/home/msil/msil/workspace/lanfeiy/workSpace/projects/media/VoiceAssistant/src/VoiceAssistant.cpp:29:30: error: template argument 1 is invalid
 std::vector<MediaTrackInfoExt> VoiceAssistant::getMetadataForTrackIds(const int32_t, std::vector<uint64_t>)
                              ^
/home/msil/msil/workspace/lanfeiy/workSpace/projects/media/VoiceAssistant/src/VoiceAssistant.cpp:29:30: error: template argument 2 is invalid
VoiceAssistant/CMakeFiles/VoiceAssistant.dir/build.make:62: recipe for target 'VoiceAssistant/CMakeFiles/VoiceAssistant.dir/src/VoiceAssistant.cpp.o' failed
make[2]: *** [VoiceAssistant/CMakeFiles/VoiceAssistant.dir/src/VoiceAssistant.cpp.o] Error 1
CMakeFiles/Makefile2:906: recipe for target 'VoiceAssistant/CMakeFiles/VoiceAssistant.dir/all' failed
make[1]: *** [VoiceAssistant/CMakeFiles/VoiceAssistant.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

  • 写回答

1条回答 默认 最新

  • 快乐鹦鹉 2021-09-18 16:57
    关注

    MediaTrackInfoExt是函数么?说没定义啊

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 12月21日
  • 已采纳回答 12月13日
  • 创建了问题 9月18日

悬赏问题

  • ¥15 QQ邮箱过期怎么恢复?
  • ¥15 (标签-android|关键词-app)
  • ¥15 微信小程序web-view嵌套H5页面IOS左滑会出现相同的页面,有什么解决方法吗?
  • ¥60 如何批量获取json的url
  • ¥15 comsol仿真压阻传感器
  • ¥15 Python线性规划函数optimize.linprog求解为整数
  • ¥15 llama3中文版微调
  • ¥15 pg数据库导入数据序列重复
  • ¥15 三分类机器学习模型可视化分析
  • ¥15 本地测试网站127.0.0.1 已拒绝连接,如何解决?(标签-ubuntu)