I am trying to integrate WebRTC
's c++ api to my project. And I was able to build libwebrtc
and link it on Windows.
This project is cross-platform targeted so it should be compiled with NDK. But when I included WebRTC
headers, it complains as below:
webrtc/p2p/base/icetransportinternal.h(141,42) : error: no member named 'to_string' in namespace 'std'
webrtc/p2p/base/icetransportinternal.h(141,42) : error: no member named 'to_string' in namespace 'std'
webrtc/p2p/base/transportchannel.h(66,42) : error: no member named 'to_string' in namespace 'std'
webrtc/p2p/base/transportchannel.h(66,42) : error: no member named 'to_string' in namespace 'std'
I know std::to_string
is unusable in NDK environment
(see Android ndk std::to_string support). But wierd thing is that I have successfully built libwebrtc
for Android.
How do I resolve this situation?