deps += ["../rtc_base:rtc_json",]
I think that the problem is about the libstdc++/libc++.
Could you try with use_custom_libcxx = false use_custom_libcxx_for_host = false when you launch the gn command?
Let me know.
Angelo
On 5/2/18, 1:47 PM, "Niels Moller" <discuss-webrtc@googlegroups.com on behalf of ni...@webrtc.org> wrote:
On Wed, May 2, 2018 at 12:16 PM, Vincent Bian <vince...@gmail.com> wrote:
> The make errer:
> /tmp/ccDp9YBT.o: In function `(anonymous
> namespace)::WebrtcChan::handleMessage()':
> /home/dengl/project/svcsfu/modules/ywebsocket.cpp:507: undefined reference
> to `Json::Reader::parse(std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> > const&, Json::Value&, bool)'
Note the std:__cxx11::basic_string in the prototype.
> 00000000000010a0 T Json::Reader::parse(std::__1::basic_istream<char,
> std::__1::char_traits<char> >&, Json::Value&, bool)
This is a symbol definition which looks almost right, but note "__1"
instead of "__cxx11", so it's not the same symbol. You have probably
compiled the jsoncpp lib with g++ and webrtc with clang, or vice
versa.
To repeat: There's no such thing as a standard C++ ABI. Therefore, you
can't mix object files produced by different C++ compilers.
Regards,
/Niels
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/CAAO0x17kP5B0%3D%2BDnCihVOeLS%2B-e%3DLnsWg3JV1YWqVhHCoSmhFQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/60CD9033-FA9D-4DC1-B69D-F312BCA06B41%40gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrtc+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/dbdd472e-9e97-47ba-b1e8-097e94c5293f%40googlegroups.com.