socket.io-client-cpp mac 构建
zhangbin@pb6a80114 ~/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/buildios master cmake ../
-- The C compiler identification is AppleClang 11.0.0.11000033
-- The CXX compiler identification is AppleClang 11.0.0.11000033
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- not define build type, set to release
CMake Warning at /usr/local/lib/cmake/boost_system-1.71.0/libboost_system-variant-static.cmake:59 (message):
Target Boost::system already has an imported location
'/usr/local/lib/libboost_system-mt.a', which will be overwritten with
'/usr/local/lib/libboost_system.a'
Call Stack (most recent call first):
/usr/local/lib/cmake/boost_system-1.71.0/boost_system-config.cmake:43 (include)
/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package)
/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
/usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
CMakeLists.txt:23 (find_package)
CMake Warning at /usr/local/lib/cmake/boost_date_time-1.71.0/libboost_date_time-variant-static.cmake:59 (message):
Target Boost::date_time already has an imported location
'/usr/local/lib/libboost_date_time-mt.a', which will be overwritten with
'/usr/local/lib/libboost_date_time.a'
Call Stack (most recent call first):
/usr/local/lib/cmake/boost_date_time-1.71.0/boost_date_time-config.cmake:43 (include)
/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package)
/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
/usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
CMakeLists.txt:23 (find_package)
CMake Warning at /usr/local/lib/cmake/boost_random-1.71.0/libboost_random-variant-static.cmake:59 (message):
Target Boost::random already has an imported location
'/usr/local/lib/libboost_random-mt.a', which will be overwritten with
'/usr/local/lib/libboost_random.a'
Call Stack (most recent call first):
/usr/local/lib/cmake/boost_random-1.71.0/boost_random-config.cmake:43 (include)
/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package)
/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
/usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
CMakeLists.txt:23 (find_package)
-- Found Boost: /usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.55.0") found components: system date_time random
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/buildios
- OPENSSL_ROOT_DIR /usr/local/Cellar/openssl/1.0.2t
- export OPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2t
zhangbin@pb6a80114 ~/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/buildios master export OPENSSL_ROOT_DIR=/usr/local/Cellar/openssl/1.0.2t
zhangbin@pb6a80114 ~/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/buildios master cmake ../
-- not define build type, set to release
CMake Warning at /usr/local/lib/cmake/boost_system-1.71.0/libboost_system-variant-static.cmake:59 (message):
Target Boost::system already has an imported location
'/usr/local/lib/libboost_system-mt.a', which will be overwritten with
'/usr/local/lib/libboost_system.a'
Call Stack (most recent call first):
/usr/local/lib/cmake/boost_system-1.71.0/boost_system-config.cmake:43 (include)
/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package)
/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
/usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
CMakeLists.txt:23 (find_package)
CMake Warning at /usr/local/lib/cmake/boost_date_time-1.71.0/libboost_date_time-variant-static.cmake:59 (message):
Target Boost::date_time already has an imported location
'/usr/local/lib/libboost_date_time-mt.a', which will be overwritten with
'/usr/local/lib/libboost_date_time.a'
Call Stack (most recent call first):
/usr/local/lib/cmake/boost_date_time-1.71.0/boost_date_time-config.cmake:43 (include)
/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package)
/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
/usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
CMakeLists.txt:23 (find_package)
CMake Warning at /usr/local/lib/cmake/boost_random-1.71.0/libboost_random-variant-static.cmake:59 (message):
Target Boost::random already has an imported location
'/usr/local/lib/libboost_random-mt.a', which will be overwritten with
'/usr/local/lib/libboost_random.a'
Call Stack (most recent call first):
/usr/local/lib/cmake/boost_random-1.71.0/boost_random-config.cmake:43 (include)
/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package)
/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component)
/usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/FindBoost.cmake:443 (find_package)
CMakeLists.txt:23 (find_package)
-- Found OpenSSL: /usr/local/lib/libcrypto.dylib (found version "1.0.2t")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/buildios
zhangbin@pb6a80114 ~/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/buildios master
还需要websocket
- lib下依赖库
git submodule init
git submodule update
zhangbin@pb6a80114 ~/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/buildios master make
Scanning dependencies of target sioclient
[ 10%] Building CXX object CMakeFiles/sioclient.dir/src/sio_client.cpp.o
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/sio_client.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_client_impl.h:15:10: fatal error:
'websocketpp/client.hpp' file not found
#include <websocketpp/client.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/sioclient.dir/src/sio_client.cpp.o] Error 1
make[1]: *** [CMakeFiles/sioclient.dir/all] Error 2
make: *** [all] Error 2
✘ zhangbin@pb6a80114 ~/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/buildios master
官方
iOS
- 在库的基础上封装库?
Option 1: Cocoapods
pod ‘SocketIO-Client-CPP’
Option 2: Create a static library
Create a static library
Copy the header files into xcode
Use the static libraries generated by the example project iOS example project
Create one for
支持模拟器和iphone 的 debug和release模式
release iphoneos
release simulator
debug iphoneos
debug simulator
Join the debug libraries and the release libraries with e.g.
合并多个 a文件位一个静态库a文件
libtool -static -o libUniversalRelease.a Release-iphoneos/libsioclient.a Release-iphonesimulator/libsioclient.a
libtool -static -o libUniversalDebug.a Debug-iphoneos/libsioclient.a Debug-iphonesimulator/libsioclient.a
Option 3: Manual integration
Use this shell to download and build boost completely automattically. It installs boost to <shell folder>/prefix.
See the iOS example project for how to integrate the rest.
- 类似可以看:
将代码及依赖的静态库编译为新静态库
最近需要在一个开源库上实现一个新功能并封成新的lib。
方法:
将代码编译为.o
使用ar -x 将依赖的静态库拆成.o
使用ar -rcs 将.o编译生成新的.a
一些参数设置
AR:=(ICATCROSSCOMPILE)arCPP:=(ICAT_CROSS_COMPILE)g++
CFLAGS+=-O2 -Wall -Wno-write-strings -D_LINUX
CPPFLAGS+=-std=c++11
1 将.cpp生成 .o
(CPP)(CFLAGS) (CPPFLAGS)−c(APP_SRC)
2 将cpp 依赖的.a 解为 .o
(AR)−x../libboostrandom.a(AR) -x ../libsioclient.a
3 将.a解析的.o 及 cpp 编译生成的.o 编译为.a
(AR)−rcslibiisc.a(LIB_DIR)/libsioclient/.o $(LIB_DIR)/libsioclient_tls/.o socketio.o json_reader.o json_value.o json_writer.o iisc.o
注意:
1 调用静态库,一直提示undefined reference to 问题解决。
采用直接将 ar -rcs target.a xx1.a xx2.a xxx.o 方式生成静态库。
结果是: cpp 找不到依赖的静态库。 直接报undefined reference to。可以把xx1.a xx2.a去掉直接ar -rcs target.a xxx.o 。 也会提示undefined reference to。
结论: ar -rcs target.a xx1.a xx2.a xxx.o = ar -rcs target.a xxx.o 通过直接添加依赖的静态库xx1.a 是没有效果。
2 注意依赖静态库拆分来的 .o 编译顺序十分重要。
拆分前.a编译顺序是怎么样的,拆分后的.o顺序就要排成怎么样,否则会出现非常奇怪的错误。
参考文献:
解决undefined reference to 问题比较好的文章:
http://blog.youkuaiyun.com/aiwoziji13/article/details/7330333/
静态库链接动态库:
http://blog.youkuaiyun.com/newchenxf/article/details/51735600
我的mbp是1.7.0
- 官方0.8.1 没修改,但是有大神的 patch
- 不兼容的修改:
From 0fd4e5d3fd8d1f6dc4c9cbd5a088dd783f340a48 Mon Sep 17 00:00:00 2001
From: Axel Holzinger <aholzinger@gmx.de>
Date: Sat, 18 Jan 2020 12:48:12 +0100
Subject: [PATCH] Make websocketpp usable with boost 1.70 and higher. Tested by
compiling cpprestsdk. Should be cleaned up in a way similiar to
_WEBSOCKETPP_REF in common/functional.hpp.
---
websocketpp/transport/asio/connection.hpp | 8 ++++++++
websocketpp/transport/asio/endpoint.hpp | 12 ++++++++++++
websocketpp/transport/asio/security/none.hpp | 4 ++++
3 files changed, 24 insertions(+)
diff --git a/websocketpp/transport/asio/connection.hpp b/websocketpp/transport/asio/connection.hpp
index 60f88a7..0548c93 100644
--- a/websocketpp/transport/asio/connection.hpp
+++ b/websocketpp/transport/asio/connection.hpp
@@ -312,7 +312,11 @@ public:
*/
timer_ptr set_timer(long duration, timer_handler callback) {
timer_ptr new_timer = lib::make_shared<lib::asio::steady_timer>(
+#if BOOST_ASIO_VERSION >= 101400
+ *m_io_service,
+#else
lib::ref(*m_io_service),
+#endif
lib::asio::milliseconds(duration)
);
@@ -462,7 +466,11 @@ protected:
if (config::enable_multithreading) {
m_strand = lib::make_shared<lib::asio::io_service::strand>(
+#if BOOST_ASIO_VERSION >= 101400
+ *io_service);
+#else
lib::ref(*io_service));
+#endif
}
lib::error_code ec = socket_con_type::init_asio(io_service, m_strand,
diff --git a/websocketpp/transport/asio/endpoint.hpp b/websocketpp/transport/asio/endpoint.hpp
index ddab2c7..4c72a2b 100644
--- a/websocketpp/transport/asio/endpoint.hpp
+++ b/websocketpp/transport/asio/endpoint.hpp
@@ -196,7 +196,11 @@ public:
m_io_service = ptr;
m_external_io_service = true;
m_acceptor = lib::make_shared<lib::asio::ip::tcp::acceptor>(
+#if BOOST_ASIO_VERSION >= 101400
+ *m_io_service);
+#else
lib::ref(*m_io_service));
+#endif
m_state = READY;
ec = lib::error_code();
@@ -689,7 +693,11 @@ public:
*/
void start_perpetual() {
m_work = lib::make_shared<lib::asio::io_service::work>(
+#if BOOST_ASIO_VERSION >= 101400
+ *m_io_service
+#else
lib::ref(*m_io_service)
+#endif
);
}
@@ -855,7 +863,11 @@ protected:
// Create a resolver
if (!m_resolver) {
m_resolver = lib::make_shared<lib::asio::ip::tcp::resolver>(
+#if BOOST_ASIO_VERSION >= 101400
+ *m_io_service);
+#else
lib::ref(*m_io_service));
+#endif
}
tcon->set_uri(u);
diff --git a/websocketpp/transport/asio/security/none.hpp b/websocketpp/transport/asio/security/none.hpp
index 5c8293d..1ea2a50 100644
--- a/websocketpp/transport/asio/security/none.hpp
+++ b/websocketpp/transport/asio/security/none.hpp
@@ -169,7 +169,11 @@ protected:
}
m_socket = lib::make_shared<lib::asio::ip::tcp::socket>(
+#if BOOST_ASIO_VERSION >= 101400
+ *service);
+#else
lib::ref(*service));
+#endif
if (m_socket_init_handler) {
m_socket_init_handler(m_hdl, *m_socket);
--
2.17.1.windows.2
- 编译出来了,感觉这个库是x86-64的,mac上跑的,不是模拟器用的
✘ zhangbin@pb6a80114 ~/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/buildios master ● make
[ 10%] Building CXX object CMakeFiles/sioclient.dir/src/sio_client.cpp.o
[ 20%] Building CXX object CMakeFiles/sioclient.dir/src/sio_socket.cpp.o
[ 30%] Building CXX object CMakeFiles/sioclient.dir/src/internal/sio_client_impl.cpp.o
[ 40%] Building CXX object CMakeFiles/sioclient.dir/src/internal/sio_packet.cpp.o
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:26:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/reader.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/stack.h:42:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:26:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/reader.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/stack.h:42:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:26:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/reader.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/stack.h:64:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:26:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/reader.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/stack.h:64:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:65:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:65:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:440:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:440:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:602:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:602:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:995:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:995:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:1252:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:1252:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:1682:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:1682:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:1701:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:1701:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:10:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/writer.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/stringbuffer.h:26:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:10:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/writer.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/stringbuffer.h:26:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:10:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/writer.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/stringbuffer.h:47:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:10:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/writer.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/stringbuffer.h:47:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
22 warnings generated.
[ 50%] Linking CXX static library libsioclient.a
[ 50%] Built target sioclient
Scanning dependencies of target sioclient_tls
[ 60%] Building CXX object CMakeFiles/sioclient_tls.dir/src/sio_client.cpp.o
[ 70%] Building CXX object CMakeFiles/sioclient_tls.dir/src/sio_socket.cpp.o
[ 80%] Building CXX object CMakeFiles/sioclient_tls.dir/src/internal/sio_client_impl.cpp.o
[ 90%] Building CXX object CMakeFiles/sioclient_tls.dir/src/internal/sio_packet.cpp.o
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:26:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/reader.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/stack.h:42:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:26:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/reader.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/stack.h:42:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:26:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/reader.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/stack.h:64:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:26:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/reader.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/stack.h:64:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:65:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:65:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:440:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:440:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:602:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:602:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:995:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:995:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:1252:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:1252:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:1682:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:1682:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:1701:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:8:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/document.h:1701:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:10:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/writer.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/stringbuffer.h:26:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:10:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/writer.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/stringbuffer.h:26:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:10:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/writer.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/stringbuffer.h:47:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
#if RAPIDJSON_HAS_CXX11_RVALUE_REFS
^
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:6: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/src/internal/sio_packet.cpp:10:
In file included from /Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/writer.h:29:
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/stringbuffer.h:47:5: warning:
macro expansion producing 'defined' has undefined behavior
[-Wexpansion-to-defined]
/Users/zhangbin/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/lib/rapidjson/include/rapidjson/internal/../rapidjson.h:417:34: note:
expanded from macro 'RAPIDJSON_HAS_CXX11_RVALUE_REFS'
(defined(_LIBCPP_VERSION) || defined(__GLIBCXX__) && __GLIBCXX__ >= ...
^
22 warnings generated.
[100%] Linking CXX static library libsioclient_tls.a
[100%] Built target sioclient_tls
zhangbin@pb6a80114 ~/tet/webrtc_build/owt-native/demo/socket.io-client-cpp/buildios master ●