--
---
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-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/119a5321-1f94-45f4-9442-3911e8573882o%40googlegroups.com.
what s the error log?
On Thu, Jun 11, 2020 at 8:25 PM Eric Davies <ericthe...@gmail.com> wrote:
if I was debugging this, the first thing I'd be checking is:--
is 'int' the same size on both sides?
Ie, it could be 32 bit on one side and 64 bit on the other side.
One of the worst design flaws of the C language.
Try calling a function that only takes a single int and see what happens to it.
Second, I'd try verify that the string type you are passing is correct. Visual studio C++ has a number of different string type possibilities ( C style null terminated strings, C++ style strings in 8 bit and 16 bit flavors, plus another string type used for UI stuff).
On Thursday, June 11, 2020 at 2:35:54 AM UTC-7, 天堂的回响 wrote:I downloaded a Windows version webrtc source and compiled it successfully recently(on April 17th), but I can't use an gn compiled shared library based on the webrtc static library with Visual Studio 2019.I wrote a shared library based on the 'webrtc' static library and it's testing executable with gn script under 'examples' directory.The executable and the shared library all worked well.But, when I use this shared library in a project directly created by Visual Studio 2019 IDE the functions in the shared library can't receive params correctly!For exmaple, there is a function named 'fun1' in the shared library, it takes 2 input parameters,the first one is an int, the second one is an std::string.When I call 'fun1' in the app and pass "webrtc" and 123 as the two parameters, the fun1 received " ???" and 123, where the first parameter's value changed to a unrecognizable value.Firstly, I didn't set 'is_clang' in args to use clang-cl as the webrtc compiler and use clang-cl in Visual Studio.Secondly, I set 'is_clang=false' to use msvc as the compiler, and use msvc in Visual Studio 2019.The problem persists.Was this caused by linking to a wrong c runtime library?I have changed the c runtime library link style to 'dynamic' in gn script under 'build/config/win/'.But, whether the link style is static or dynamic the problem persists.Is there something wrong in my steps?
---
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/119a5321-1f94-45f4-9442-3911e8573882o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/8866ab1c-3c5b-4a36-b189-de1e95caf7eeo%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/8866ab1c-3c5b-4a36-b189-de1e95caf7eeo%40googlegroups.com.