Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

There were many mistakes when i use "make" #9

Open
DongZhou12345 opened this issue Sep 2, 2019 · 1 comment
Open

There were many mistakes when i use "make" #9

DongZhou12345 opened this issue Sep 2, 2019 · 1 comment

Comments

@DongZhou12345
Copy link

/usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: 错误:#error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the
^
In file included from /usr/include/boost/asio/detail/impl/throw_error.ipp:21:0,
from /usr/include/boost/asio/detail/throw_error.hpp:52,
from /usr/include/boost/asio/detail/impl/posix_event.ipp:23,
from /usr/include/boost/asio/detail/posix_event.hpp:95,
from /usr/include/boost/asio/detail/event.hpp:25,
from /usr/include/boost/asio/detail/task_io_service_thread_info.hpp:18,
from /usr/include/boost/asio/impl/handler_alloc_hook.ipp:27,
from /usr/include/boost/asio/handler_alloc_hook.hpp:80,
from /usr/include/boost/asio/detail/handler_alloc_helpers.hpp:22,
from /usr/include/boost/asio/detail/bind_handler.hpp:19,
from /usr/include/boost/asio/detail/wrapped_handler.hpp:18,
from /usr/include/boost/asio/io_service.hpp:24,
from /usr/include/boost/asio/basic_io_object.hpp:19,
from /usr/include/boost/asio/basic_socket.hpp:19,
from /usr/include/boost/asio/basic_datagram_socket.hpp:20,
from /root/QoSTestFramework-master/QOStestclient/asio.hpp:20,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:5:
/usr/include/boost/system/system_error.hpp: 在成员函数‘virtual const char* boost::system::system_error::what() const’中:
/usr/include/boost/system/system_error.hpp:70:16: 错误:异常处理已被禁用,使用 -fexceptions 启用
catch (...) { return std::runtime_error::what(); }
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt.h:6:0,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h: 在全局域:
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:12:1: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class AudioCodec : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:12:25: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class AudioCodec : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:25:1: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class VideoCodec : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:25:25: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class VideoCodec : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:33:1: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class TrackKind : int{
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:33:24: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class TrackKind : int{
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h: 在构造函数‘owt::base::AudioCodecParameters::AudioCodecParameters()’中:
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:55:14: 错误:‘AudioCodec’既不是类也不是命名空间
: name(AudioCodec::kUnknown), channel_count(0), clock_rate(0) {}
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h: 在全局域:
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:73:65: 警告:defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [默认启用]
AudioEncodingParameters(const AudioEncodingParameters& aep) = default;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:74:72: 警告:defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [默认启用]
AudioEncodingParameters& operator=(const AudioEncodingParameters&) = default;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h: 在构造函数‘owt::base::VideoCodecParameters::VideoCodecParameters()’中:
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:81:42: 错误:‘VideoCodec’既不是类也不是命名空间
explicit VideoCodecParameters() : name(VideoCodec::kUnknown), profile("") {}
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h: 在全局域:
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:100:65: 警告:defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [默认启用]
VideoEncodingParameters(const VideoEncodingParameters& aep) = default;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:101:72: 警告:defaulted and deleted functions only available with -std=c++11 or -std=gnu++11 [默认启用]
VideoEncodingParameters& operator=(const VideoEncodingParameters&) = default;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:109:1: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class AudioSourceInfo : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:109:30: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class AudioSourceInfo : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:119:1: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class VideoSourceInfo : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:119:30: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class VideoSourceInfo : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h: 在构造函数‘owt::base::StreamSourceInfo::StreamSourceInfo()’中:
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:129:13: 错误:‘AudioSourceInfo’既不是类也不是命名空间
: audio(AudioSourceInfo::kUnknown),
^
/root/QoSTestFramework-master/QOStestclient/owt/base/commontypes.h:130:13: 错误:‘VideoSourceInfo’既不是类也不是命名空间
video(VideoSourceInfo::kUnknown) {}
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:9:0,
from /root/QoSTestFramework-master/QOStestclient/owt.h:9,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/base/videodecoderinterface.h: 在全局域:
/root/QoSTestFramework-master/QOStestclient/owt/base/videodecoderinterface.h:49:36: 错误:‘std::unique_ptr’尚未声明
virtual bool OnEncodedFrame(std::unique_ptr frame) = 0;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/videodecoderinterface.h:49:46: 错误:expected ‘,’ or ‘...’ before ‘<’ token
virtual bool OnEncodedFrame(std::unique_ptr frame) = 0;
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt.h:9:0,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:81:12: 错误:‘std::unique_ptr’尚未声明
std::unique_ptr audio_frame_generator) {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:81:22: 错误:expected ‘,’ or ‘...’ before ‘<’ token
std::unique_ptr audio_frame_generator) {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:94:12: 错误:‘std::unique_ptr’尚未声明
std::unique_ptr external_video_decoder) {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:94:22: 错误:expected ‘,’ or ‘...’ before ‘<’ token
std::unique_ptr external_video_decoder) {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:188:10: 错误:‘unique_ptr’不是命名空间‘std’中的一个类型名
static std::unique_ptr GetAudioFrameGenerator(){
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:197:10: 错误:‘unique_ptr’不是命名空间‘std’中的一个类型名
static std::unique_ptr audio_frame_generator_;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:210:10: 错误:‘unique_ptr’不是命名空间‘std’中的一个类型名
static std::unique_ptr GetCustomizedVideoDecoder() {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:216:10: 错误:‘unique_ptr’不是命名空间‘std’中的一个类型名
static std::unique_ptr video_decoder_;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h: 在静态成员函数‘static void owt::base::GlobalConfiguration::SetCustomizedAudioInputEnabled(bool, int)’中:
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:83:11: 错误:‘audio_frame_generator_’在此作用域中尚未声明
audio_frame_generator_ = std::move(audio_frame_generator);
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:83:36: 错误:‘move’不是‘std’的成员
audio_frame_generator_ = std::move(audio_frame_generator);
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:83:46: 错误:‘audio_frame_generator’在此作用域中尚未声明
audio_frame_generator_ = std::move(audio_frame_generator);
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:85:11: 错误:‘audio_frame_generator_’在此作用域中尚未声明
audio_frame_generator_.reset(nullptr);
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:85:40: 错误:‘nullptr’在此作用域中尚未声明
audio_frame_generator_.reset(nullptr);
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h: 在静态成员函数‘static void owt::base::GlobalConfiguration::SetCustomizedVideoDecoderEnabled(int)’中:
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:95:5: 错误:‘video_decoder_’在此作用域中尚未声明
video_decoder_ = std::move(external_video_decoder);
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:95:22: 错误:‘move’不是‘std’的成员
video_decoder_ = std::move(external_video_decoder);
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:95:32: 错误:‘external_video_decoder’在此作用域中尚未声明
video_decoder_ = std::move(external_video_decoder);
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h: 在静态成员函数‘static bool owt::base::GlobalConfiguration::GetCustomizedAudioInputEnabled()’中:
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:155:12: 错误:‘audio_frame_generator_’在此作用域中尚未声明
return audio_frame_generator_ ? true : false;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h: 在静态成员函数‘static bool owt::base::GlobalConfiguration::GetCustomizedVideoDecoderEnabled()’中:
/root/QoSTestFramework-master/QOStestclient/owt/base/globalconfiguration.h:204:12: 错误:‘video_decoder_’在此作用域中尚未声明
return video_decoder_ ? true : false;
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt.h:10:0,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/base/localcamerastreamparameters.h: 在全局域:
/root/QoSTestFramework-master/QOStestclient/owt/base/localcamerastreamparameters.h:17:7: 警告:override controls (override/final) only available with -std=c++11 or -std=gnu++11 [默认启用]
class LocalCameraStreamParameters final {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/localcamerastreamparameters.h:78:7: 警告:override controls (override/final) only available with -std=c++11 or -std=gnu++11 [默认启用]
class LocalCustomizedStreamParameters final {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/localcamerastreamparameters.h:150:7: 警告:override controls (override/final) only available with -std=c++11 or -std=gnu++11 [默认启用]
class LocalDesktopStreamParameters final {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/localcamerastreamparameters.h:152:3: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class DesktopCapturePolicy : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/localcamerastreamparameters.h:152:37: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class DesktopCapturePolicy : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/localcamerastreamparameters.h:167:3: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class DesktopSourceType : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/localcamerastreamparameters.h:167:34: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class DesktopSourceType : int {
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt.h:11:0,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/base/logging.h:8:1: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class LoggingSeverity : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/logging.h:8:30: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class LoggingSeverity : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/logging.h:24:7: 警告:override controls (override/final) only available with -std=c++11 or -std=gnu++11 [默认启用]
class Logging final {
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:10:0,
from /root/QoSTestFramework-master/QOStestclient/owt.h:12,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/base/exception.h:10:1: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class ExceptionType : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/exception.h:10:28: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class ExceptionType : int {
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:15:0,
from /root/QoSTestFramework-master/QOStestclient/owt.h:12,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/base/videorendererinterface.h:16:1: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class VideoBufferType {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/videorendererinterface.h:20:1: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class VideoRendererType {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/videorendererinterface.h:77:33: 错误:‘std::unique_ptr’尚未声明
virtual void RenderFrame(std::unique_ptr buffer) = 0;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/videorendererinterface.h:77:43: 错误:expected ‘,’ or ‘...’ before ‘<’ token
virtual void RenderFrame(std::unique_ptr buffer) = 0;
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt.h:12:0,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:84:17: 错误:‘unordered_map’不是命名空间‘std’中的一个类型名
virtual const std::unordered_map<std::string, std::string> Attributes()
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:117:3: 错误:‘unordered_map’不是命名空间‘std’中的一个类型名
std::unordered_map<std::string, std::string> attributes_;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:128:11: 错误:‘mutex’不是命名空间‘std’中的一个类型名
mutable std::mutex observer_mutex_;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:129:15: 错误:‘reference_wrapper’不是‘std’的成员
std::vector<std::reference_wrapper> observers_;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:129:15: 错误:‘reference_wrapper’不是‘std’的成员
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:129:55: 错误:‘observers_’在此作用域中尚未声明
std::vector<std::reference_wrapper> observers_;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:129:55: 错误:模板第 1 个参数无效
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:129:55: 错误:模板第 2 个参数无效
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:140:46: 错误:‘unordered_map’不是命名空间‘std’中的一个类型名
virtual void OnCaptureSourceNeeded(const std::unordered_map<int, std::string>& window_list, int& dest_window) {}
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:140:51: 错误:ISO C++ 不允许声明无类型的‘parameter’ [-fpermissive]
virtual void OnCaptureSourceNeeded(const std::unordered_map<int, std::string>& window_list, int& dest_window) {}
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:140:64: 错误:expected ‘,’ or ‘...’ before ‘<’ token
virtual void OnCaptureSourceNeeded(const std::unordered_map<int, std::string>& window_list, int& dest_window) {}
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:154:17: 错误:没有与‘owt::base::Stream::Attributes’匹配的成员,在‘class owt::base::Stream’中
using Stream::Attributes;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:161:13: 错误:‘unordered_map’不是命名空间‘std’中的一个类型名
const std::unordered_map<std::string, std::string>& attributes) {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:161:18: 错误:ISO C++ 不允许声明无类型的‘parameter’ [-fpermissive]
const std::unordered_map<std::string, std::string>& attributes) {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:161:31: 错误:expected ‘,’ or ‘...’ before ‘<’ token
const std::unordered_map<std::string, std::string>& attributes) {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:178:10: 错误:‘shared_ptr’不是命名空间‘std’中的一个类型名
static std::shared_ptr Create(
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:190:10: 错误:‘shared_ptr’不是命名空间‘std’中的一个类型名
static std::shared_ptr Create(
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:204:10: 错误:‘shared_ptr’不是命名空间‘std’中的一个类型名
static std::shared_ptr Create(
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:216:10: 错误:‘shared_ptr’不是命名空间‘std’中的一个类型名
static std::shared_ptr Create(
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:239:25: 错误:expected ‘)’ before ‘<’ token
std::shared_ptr parameters,
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:242:25: 错误:expected ‘)’ before ‘<’ token
std::shared_ptr parameters,
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:252:21: 警告:non-static data member initializers only available with -std=c++11 or -std=gnu++11 [默认启用]
bool encoded_ = false;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h: 在成员函数‘virtual void owt::base::LocalStream::Attributes(int)’中:
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:162:5: 错误:‘attributes_’在此作用域中尚未声明
attributes_ = attributes;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:162:19: 错误:‘attributes’在此作用域中尚未声明
attributes_ = attributes;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h: 在全局域:
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:275:33: 错误:‘unordered_map’不是命名空间‘std’中的一个类型名
virtual void Attributes(const std::unordered_map<std::string, std::string>& attributes) {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:275:38: 错误:ISO C++ 不允许声明无类型的‘parameter’ [-fpermissive]
virtual void Attributes(const std::unordered_map<std::string, std::string>& attributes) {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:275:51: 错误:expected ‘,’ or ‘...’ before ‘<’ token
virtual void Attributes(const std::unordered_map<std::string, std::string>& attributes) {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:282:17: 错误:没有与‘owt::base::Stream::Attributes’匹配的成员,在‘class owt::base::Stream’中
using Stream::Attributes;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:305:21: 警告:non-static data member initializers only available with -std=c++11 or -std=gnu++11 [默认启用]
bool has_audio_ = true;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:306:21: 警告:non-static data member initializers only available with -std=c++11 or -std=gnu++11 [默认启用]
bool has_video_ = true;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h: 在成员函数‘virtual void owt::base::RemoteStream::Attributes(int)’中:
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:276:27: 错误:‘attributes_’在此作用域中尚未声明
attributes_ = attributes;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/stream.h:276:41: 错误:‘attributes’在此作用域中尚未声明
attributes_ = attributes;
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt/base/clientconfiguration.h:9:0,
from /root/QoSTestFramework-master/QOStestclient/owt/conference/conferenceclient.h:13,
from /root/QoSTestFramework-master/QOStestclient/owt.h:15,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/base/network.h: 在全局域:
/root/QoSTestFramework-master/QOStestclient/owt/base/network.h:18:1: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class IceCandidateType : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/network.h:18:31: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class IceCandidateType : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/network.h:31:1: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class TransportProtocolType : int {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/network.h:31:36: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class TransportProtocolType : int {
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt/conference/conferenceclient.h:13:0,
from /root/QoSTestFramework-master/QOStestclient/owt.h:15,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/base/clientconfiguration.h:14:3: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class CandidateNetworkPolicy : int { kAll = 1, kLowCost };
^
/root/QoSTestFramework-master/QOStestclient/owt/base/clientconfiguration.h:14:39: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class CandidateNetworkPolicy : int { kAll = 1, kLowCost };
^
/root/QoSTestFramework-master/QOStestclient/owt/base/clientconfiguration.h: 在构造函数‘owt::base::ClientConfiguration::ClientConfiguration()’中:
/root/QoSTestFramework-master/QOStestclient/owt/base/clientconfiguration.h:16:35: 错误:‘CandidateNetworkPolicy’既不是类也不是命名空间
: candidate_network_policy(CandidateNetworkPolicy::kAll) {};
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt/conference/conferenceclient.h:14:0,
from /root/QoSTestFramework-master/QOStestclient/owt.h:15,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h: 在全局域:
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:59:3: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class AdaptReason : int32_t {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:59:28: 警告:scoped enums only available with -std=c++11 or -std=gnu++11 [默认启用]
enum class AdaptReason : int32_t {
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:179:12: 错误:‘std::shared_ptr’尚未声明
std::shared_ptr local_ice_candidate,
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:179:22: 错误:expected ‘,’ or ‘...’ before ‘<’ token
std::shared_ptr local_ice_candidate,
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:190:3: 错误:‘shared_ptr’不是命名空间‘std’中的一个类型名
std::shared_ptr local_ice_candidate;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:192:3: 错误:‘shared_ptr’不是命名空间‘std’中的一个类型名
std::shared_ptr remote_ice_candidate;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h: 在构造函数‘owt::base::IceCandidatePairReport::IceCandidatePairReport(const string&, bool, int)’中:
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:183:9: 错误:类‘owt::base::IceCandidatePairReport’没有名为‘local_ice_candidate’的字段
local_ice_candidate(local_ice_candidate),
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:183:29: 错误:‘local_ice_candidate’在此作用域中尚未声明
local_ice_candidate(local_ice_candidate),
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:184:9: 错误:类‘owt::base::IceCandidatePairReport’没有名为‘remote_ice_candidate’的字段
remote_ice_candidate(remote_ice_candidate) {}
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:184:30: 错误:‘remote_ice_candidate’在此作用域中尚未声明
remote_ice_candidate(remote_ice_candidate) {}
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h: 在全局域:
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:194:9: 错误:‘unique_ptr’不是命名空间‘std’中的一个类型名
typedef std::unique_ptr AudioSenderReportPtr;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:195:21: 错误:‘AudioSenderReportPtr’在此作用域中尚未声明
typedef std::vector AudioSenderReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:195:41: 错误:模板第 1 个参数无效
typedef std::vector AudioSenderReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:195:41: 错误:模板第 2 个参数无效
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:195:61: 错误:invalid type in declaration before ‘;’ token
typedef std::vector AudioSenderReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:196:9: 错误:‘unique_ptr’不是命名空间‘std’中的一个类型名
typedef std::unique_ptr AudioReceiverReportPtr;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:197:21: 错误:‘AudioReceiverReportPtr’在此作用域中尚未声明
typedef std::vector AudioReceiverReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:197:43: 错误:模板第 1 个参数无效
typedef std::vector AudioReceiverReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:197:43: 错误:模板第 2 个参数无效
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:197:65: 错误:invalid type in declaration before ‘;’ token
typedef std::vector AudioReceiverReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:198:9: 错误:‘unique_ptr’不是命名空间‘std’中的一个类型名
typedef std::unique_ptr VideoSenderReportPtr;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:199:21: 错误:‘VideoSenderReportPtr’在此作用域中尚未声明
typedef std::vector VideoSenderReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:199:41: 错误:模板第 1 个参数无效
typedef std::vector VideoSenderReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:199:41: 错误:模板第 2 个参数无效
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:199:61: 错误:invalid type in declaration before ‘;’ token
typedef std::vector VideoSenderReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:200:9: 错误:‘unique_ptr’不是命名空间‘std’中的一个类型名
typedef std::unique_ptr VideoReceiverReportPtr;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:201:21: 错误:‘VideoReceiverReportPtr’在此作用域中尚未声明
typedef std::vector VideoReceiverReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:201:43: 错误:模板第 1 个参数无效
typedef std::vector VideoReceiverReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:201:43: 错误:模板第 2 个参数无效
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:201:65: 错误:invalid type in declaration before ‘;’ token
typedef std::vector VideoReceiverReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:202:9: 错误:‘shared_ptr’不是命名空间‘std’中的一个类型名
typedef std::shared_ptr IceCandidateReportPtr;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:203:21: 错误:‘IceCandidateReportPtr’在此作用域中尚未声明
typedef std::vector IceCandidateReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:203:42: 错误:模板第 1 个参数无效
typedef std::vector IceCandidateReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:203:42: 错误:模板第 2 个参数无效
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:203:63: 错误:invalid type in declaration before ‘;’ token
typedef std::vector IceCandidateReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:204:9: 错误:‘shared_ptr’不是命名空间‘std’中的一个类型名
typedef std::shared_ptr IceCandidatePairPtr;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:205:21: 错误:‘IceCandidatePairPtr’在此作用域中尚未声明
typedef std::vector IceCandidatePairReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:205:40: 错误:模板第 1 个参数无效
typedef std::vector IceCandidatePairReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:205:40: 错误:模板第 2 个参数无效
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:205:65: 错误:invalid type in declaration before ‘;’ token
typedef std::vector IceCandidatePairReports;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/connectionstats.h:210:3: 错误:‘chrono’不是命名空间‘std’中的一个类型名
std::chrono::system_clock::time_point time_stamp = std::chrono::system_clock::now();
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:10:0,
from /root/QoSTestFramework-master/QOStestclient/owt/conference/conferenceclient.h:18,
from /root/QoSTestFramework-master/QOStestclient/owt.h:15,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/base/publication.h:21:29: 错误:‘std::unique_ptr’尚未声明
virtual void OnError(std::unique_ptr failure) = 0;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/publication.h:21:39: 错误:expected ‘,’ or ‘...’ before ‘<’ token
virtual void OnError(std::unique_ptr failure) = 0;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/publication.h:27:26: 错误:‘std::function’尚未声明
std::function<void()> on_success,
^
/root/QoSTestFramework-master/QOStestclient/owt/base/publication.h:27:34: 错误:expected ‘,’ or ‘...’ before ‘<’ token
std::function<void()> on_success,
^
/root/QoSTestFramework-master/QOStestclient/owt/base/publication.h:31:28: 错误:‘std::function’尚未声明
std::function<void()> on_success,
^
/root/QoSTestFramework-master/QOStestclient/owt/base/publication.h:31:36: 错误:expected ‘,’ or ‘...’ before ‘<’ token
std::function<void()> on_success,
^
/root/QoSTestFramework-master/QOStestclient/owt/base/publication.h:35:12: 错误:‘std::function’尚未声明
std::function<void(std::shared_ptr)> on_success,
^
/root/QoSTestFramework-master/QOStestclient/owt/base/publication.h:35:20: 错误:expected ‘,’ or ‘...’ before ‘<’ token
std::function<void(std::shared_ptr)> on_success,
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt/conference/conferenceclient.h:18:0,
from /root/QoSTestFramework-master/QOStestclient/owt.h:15,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:27:42: 错误:expected ‘)’ before ‘<’ token
ConferencePublication(std::shared_ptr client, const std::string& pub_id,
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:34:20: 错误:‘std::function’尚未声明
std::function<void()> on_success,
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:34:28: 错误:expected ‘,’ or ‘...’ before ‘<’ token
std::function<void()> on_success,
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:35:73: 警告:override controls (override/final) only available with -std=c++11 or -std=gnu++11 [默认启用]
std::function<void(std::unique_ptr)> on_failure) override;
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:38:22: 错误:‘std::function’尚未声明
std::function<void()> on_success,
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:38:30: 错误:expected ‘,’ or ‘...’ before ‘<’ token
std::function<void()> on_success,
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:39:75: 警告:override controls (override/final) only available with -std=c++11 or -std=gnu++11 [默认启用]
std::function<void(std::unique_ptr)> on_failure) override;
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:42:14: 错误:‘std::function’尚未声明
std::function<void(std::shared_ptr)> on_success,
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:42:22: 错误:expected ‘,’ or ‘...’ before ‘<’ token
std::function<void(std::shared_ptr)> on_success,
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:43:67: 警告:override controls (override/final) only available with -std=c++11 or -std=gnu++11 [默认启用]
std::function<void(std::unique_ptr)> on_failure) override;
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:45:14: 错误:‘std::function’尚未声明
std::function<void(
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:45:22: 错误:expected ‘,’ or ‘...’ before ‘<’ token
std::function<void(
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:49:15: 警告:override controls (override/final) only available with -std=c++11 or -std=gnu++11 [默认启用]
void Stop() override;
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:53:51: 警告:override controls (override/final) only available with -std=c++11 or -std=gnu++11 [默认启用]
void AddObserver(PublicationObserver& observer) override;
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:55:54: 警告:override controls (override/final) only available with -std=c++11 or -std=gnu++11 [默认启用]
void RemoveObserver(PublicationObserver& observer) override;
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:57:93: 警告:override controls (override/final) only available with -std=c++11 or -std=gnu++11 [默认启用]
void OnStreamMuteOrUnmute(const std::string& stream_id, TrackKind track_kind, bool muted) override;
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:58:52: 警告:override controls (override/final) only available with -std=c++11 or -std=gnu++11 [默认启用]
void OnStreamError(const std::string& error_msg) override;
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:62:13: 错误:‘mutex’不是命名空间‘std’中的一个类型名
mutable std::mutex observer_mutex_;
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:63:17: 错误:‘reference_wrapper’不是‘std’的成员
std::vector<std::reference_wrapper> observers_;
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:63:17: 错误:‘reference_wrapper’不是‘std’的成员
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:63:62: 错误:‘observers_’在此作用域中尚未声明
std::vector<std::reference_wrapper> observers_;
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:63:62: 错误:模板第 1 个参数无效
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:63:62: 错误:模板第 2 个参数无效
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:64:5: 错误:‘weak_ptr’不是命名空间‘std’中的一个类型名
std::weak_ptr conference_client_; // Weak ref to associated conference client
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencepublication.h:65:5: 错误:‘shared_ptr’不是命名空间‘std’中的一个类型名
std::shared_ptrrtc::TaskQueue event_queue_;
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt/conference/conferencesubscription.h:10:0,
from /root/QoSTestFramework-master/QOStestclient/owt/conference/conferenceclient.h:19,
from /root/QoSTestFramework-master/QOStestclient/owt.h:15,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/base/subscription.h:20:31: 错误:‘std::unique_ptr’尚未声明
virtual void OnError(std::unique_ptrowt::base::Exception error) = 0;
^
/root/QoSTestFramework-master/QOStestclient/owt/base/subscription.h:20:41: 错误:expected ‘,’ or ‘...’ before ‘<’ token
virtual void OnError(std::unique_ptrowt::base::Exception error) = 0;
^
In file included from /root/QoSTestFramework-master/QOStestclient/owt/conference/conferenceclient.h:19:0,
from /root/QoSTestFramework-master/QOStestclient/owt.h:15,
from /root/QoSTestFramework-master/QOStestclient/conferenceforwardobserver.h:6,
from /root/QoSTestFramework-master/QOStestclient/conferencesample.cc:6:
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencesubscription.h:26:67: 错误:expected template-name before ‘<’ token
public std::enable_shared_from_this {
^
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencesubscription.h:26:67: 错误:expected ‘{’ before ‘<’ token
/root/QoSTestFramework-master/QOStestclient/owt/conference/conferencesubscription.h:26:67: 错误:expected unqualified-id before ‘<’ token
/root/QoSTestFramework-master/QOStestclient/conferencesample.cc:133:1: 错误:expected ‘}’ at end of input
}
^
/root/QoSTestFramework-master/QOStestclient/conferencesample.cc:133:1: 错误:expected ‘}’ at end of input
make[2]: *** [CMakeFiles/owt_conf_sample.dir/conferencesample.cc.o] 错误 1
make[1]: *** [CMakeFiles/owt_conf_sample.dir/all] 错误 2
make: *** [all] 错误 2

@JinChengShi
Copy link
Contributor

Please use g++ (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 version to make or add -std=c++11 flag in makefile.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants