Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking fails on Windows #277

Closed
daniel-abramov opened this issue Dec 28, 2023 · 2 comments
Closed

Linking fails on Windows #277

daniel-abramov opened this issue Dec 28, 2023 · 2 comments

Comments

@daniel-abramov
Copy link
Contributor

After suggestions in #249, I was able to cargo check and cargo build the repository, so as a next stage, I added livekit dependency to my project and noticed that altthough cargo check worked fine, cargo build failed (presumably during linking phase).

I created a simple self-contained example to demonstrate the issue. I've created an empty project: cargo new --bin test-lk, then I modified Cargo.toml to use the latest LiveKit Rust SDK:

[package]
name = "test-lk"
version = "0.1.0"
edition = "2021"

[dependencies]
livekit = {git = "https://github.com/livekit/rust-sdks.git", branch = "main", features = ["native-tls"]}

The main.rs looks like this:

use livekit;

fn main() {}

Executing cargo check ends without any errors. However, trying to cargo build fails with:

PS C:\Users\daniel\Documents\test-lk> cargo build
    Blocking waiting for file lock on build directory
   Compiling webrtc-sys-build v0.2.0 (https://github.com/livekit/rust-sdks.git?branch=main#e0bda6e2)
   Compiling livekit-protocol v0.2.0 (https://github.com/livekit/rust-sdks.git?branch=main#e0bda6e2)
   Compiling webrtc-sys v0.2.0 (https://github.com/livekit/rust-sdks.git?branch=main#e0bda6e2)
   Compiling livekit-api v0.2.0 (https://github.com/livekit/rust-sdks.git?branch=main#e0bda6e2)
   Compiling libwebrtc v0.2.0 (https://github.com/livekit/rust-sdks.git?branch=main#e0bda6e2)
   Compiling livekit v0.2.0 (https://github.com/livekit/rust-sdks.git?branch=main#e0bda6e2)
   Compiling test-lk v0.1.0 (C:\Users\daniel\Documents\test-lk)
error: linking with `link.exe` failed: exit code: 1169
  |
  = note: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.39.33321\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\daniel\\AppData\\Local\\Temp\\rustcy3ySjw\\symbols.o" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\test_lk.2jf3vix9ew5sqs9o.rcgu.o" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\test_lk.34iy5cc4sfl3vm3t.rcgu.o" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\test_lk.3irrhvr6tob7e82h.rcgu.o" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\test_lk.4ymk6n91gxwxghbu.rcgu.o" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\test_lk.z5098o7ullfv559.rcgu.o" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\test_lk.4lzugdl8ustdp1nb.rcgu.o" "/LIBPATH:C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps" "/LIBPATH:C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.39.33321\\atlmfc\\lib\\x64" "/LIBPATH:C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\build\\cxx-ad9d3eb992f64411\\out" "/LIBPATH:C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.39.33321\\atlmfc\\lib\\x64" "/LIBPATH:C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\build\\link-cplusplus-09677cba447d7c4d\\out" "/LIBPATH:C:\\Users\\daniel\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\windows_x86_64_msvc-0.48.5\\lib" "/LIBPATH:C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\build\\scratch-15b610bd272838ce\\out\\livekit_webrtc\\livekit/win-x64-release-webrtc-d5afc4b-2/win-x64-release\\lib" "/LIBPATH:C:\\Program Files\\Microsoft Visual Studio\\2022\\Preview\\VC\\Tools\\MSVC\\14.39.33321\\atlmfc\\lib\\x64" "/LIBPATH:C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\build\\webrtc-sys-77d51d2fe746e4ed\\out" "/LIBPATH:C:\\Users\\daniel\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\windows_x86_64_msvc-0.52.0\\lib" "/LIBPATH:C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\liblivekit-b17a7006f30355aa.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\liblivekit_api-dca1a56b044707cd.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libtokio_tungstenite-b372201e4550d1a6.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libtungstenite-4b8f064f370d04b4.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libdata_encoding-cc8a79ace7a1b673.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\librand-a0a98b5310bad759.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\librand_chacha-1a3fa5f2e1e2ef26.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libppv_lite86-daf70be6996faada.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\librand_core-cec86f7c85f566d2.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libgetrandom-327ced8532d69d9e.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libutf8-1f48bea5b305c547.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libbyteorder-d92f2689d90f44ce.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libsha1-03c3f7df5cab6bb2.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libcpufeatures-c1729a222cce30dd.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libdigest-e250a0eb3fb1a4cf.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libblock_buffer-2722ce3f6fd68fa3.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libcrypto_common-fe68bf67ee696471.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libgeneric_array-8c6182135c1dfbd1.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libtypenum-1076682befadc198.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libreqwest-d00b021ee55d8d43.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libhyper_tls-07864fdfef2157a0.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libserde_urlencoded-451d2272d55a8d24.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libwinreg-e6cf0c1449b5b4bc.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libipnet-e90c287c3df07b42.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libtokio_native_tls-176b21a94466c3f3.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libmime-2e49d6de1b60f73b.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libencoding_rs-ee8d79e1698239cf.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libnative_tls-31093c0025263f2a.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libschannel-0414c398c6bc3b61.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libwindows_sys-d93123ef9387ade2.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libwindows_targets-a2d6c26884294389.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libhyper-4042243df92c03e3.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libwant-dabe6de7c0922535.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libtry_lock-bf348125faf602ad.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libhttparse-185e9ef146cd8e95.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libh2-648887769d2affe7.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libindexmap-85f2f2caec224b75.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libequivalent-aed6d10f7fd10d87.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libhashbrown-d7ff16249ac1a34f.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libtokio_util-c576a3397d105873.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libtower_service-521ee53e34eb2f0d.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libtracing-750e066c6156d25d.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libtracing_core-c422e48f60d9fd5d.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libonce_cell-67b346833f115c50.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libfutures_channel-cfe73c74c65e5348.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libhttp_body-9b5fce6882e0a587.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\liburl-c308904238e41f8f.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libidna-59a1f892bf2c4195.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libunicode_normalization-b1ceae8bb8fc36d9.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libtinyvec-7fde368f9d764c65.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libtinyvec_macros-5d241765cbb9a266.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libunicode_bidi-2d0184f1e30318b9.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libform_urlencoded-5e069bc96ed5cd45.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libpercent_encoding-0f3a364525d4b65e.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libhttp-7fcdb19d44b60b8c.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libfnv-d61f0f6cdeb29c2d.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\liblibwebrtc-c8f5a945f11b609c.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libserde_json-92e208f80a1ee93f.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libryu-b3b82117ded96420.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libitoa-c7dc53b7a49ac806.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\liblog-a1cea56e90615fb9.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\liblazy_static-1e9f56ad924e5695.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libtokio_stream-81c8c46ee71ffc60.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libwebrtc_sys-6d04d825a142b8c1.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libcxx-4db27d80ebd54f3b.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\liblink_cplusplus-c3b66f61b052e098.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\liblivekit_protocol-627f40b5e40d9efe.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libpbjson_types-4c8e9ad908889d6c.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libpbjson-e39633887523795c.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libbase64-09c5ef418aaaf95d.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libchrono-3b74cef014c502ff.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libnum_traits-8ff6bec72ec9c564.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libserde-72a7ed4fe1f96993.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libprost-78f4e05414e376b8.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libtokio-8212ba5b6ab88b9f.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libnum_cpus-61a51ce0fc061202.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libsocket2-304118b717269b37.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libbytes-b38bed475c49d3de.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libmio-56873c40f44a837c.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libwindows_sys-ef706239d345fde9.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libparking_lot-43e451135425a9d4.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libparking_lot_core-7875deac8cfb549d.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libwindows_targets-283a4ce606f9547b.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libcfg_if-656685f8f63d488b.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libsmallvec-04160eae1380ff35.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\liblock_api-999aa4990f99fadb.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libscopeguard-9e6cadeab584ef0c.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libthiserror-bdb19cdd9522beca.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libfutures_util-230e4cd597e52756.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libslab-6015c603a75ed46c.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libpin_project_lite-69f8d7536c4de529.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libfutures_sink-e61fdfcd8a9fe8d1.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libfutures_task-97f4ecba09df6fe7.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libpin_utils-ca58b20a1545274f.rlib" "C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\libfutures_core-81e23d4a01060423.rlib" "C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-4ee9ee8805e6ac55.rlib" "C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-b7f160f59ff3afe6.rlib" "C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-e8c24fed9d2415b5.rlib" "C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_detect-dc5e694480c92f7d.rlib" "C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-6857d0a8b739d5f0.rlib" "C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-7a08ac386730ec94.rlib" "C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-f201b2212ca92765.rlib" "C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-de70a16c1e265404.rlib" "C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-e96b2f5623ee3f3d.rlib" "C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-a743693af38ef10c.rlib" "C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-50c4d9c55d61cc18.rlib" "C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-16be615c0f945bda.rlib" "C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-3447ff57d35e742b.rlib" "bcrypt.lib" "advapi32.lib" "windows.0.52.0.lib" "msdmo.lib" "wmcodecdspuuid.lib" "dmoguids.lib" "crypt32.lib" "iphlpapi.lib" "ole32.lib" "secur32.lib" "winmm.lib" "ws2_32.lib" "strmiids.lib" "d3d11.lib" "gdi32.lib" "dxgi.lib" "dwmapi.lib" "shcore.lib" "ntdll.lib" "windows.0.48.5.lib" "windows.0.48.5.lib" "kernel32.lib" "advapi32.lib" "bcrypt.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "kernel32.lib" "ws2_32.lib" "kernel32.lib" "msvcrt.lib" "/NXCOMPAT" "/LIBPATH:C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/OUT:C:\\Users\\daniel\\Documents\\test-lk\\target\\debug\\deps\\test_lk.exe" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\daniel\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis"
  = note: libwebrtc_sys-6d04d825a142b8c1.rlib(push_resampler.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(video_frame.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(audio_options.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(checks.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(media_stream_interface.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(audio_frame.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(remix_resample.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(push_sinc_resampler.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(logging.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(copy_on_write_buffer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(jsep_ice_candidate.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(jsep_session_description.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(srtp_session.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(color_space.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(video_frame_buffer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(i420_buffer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(i422_buffer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(i444_buffer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(i010_buffer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(nv12_buffer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(thread.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(ssl_adapter.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(helpers.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(frame_crypto_transformer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(call_factory.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(audio_processing_builder_impl.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(field_trials_registry.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(field_trial_based_config.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(peer_connection_interface.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(peer_connection_factory.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(builtin_audio_decoder_factory.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(builtin_audio_encoder_factory.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(rtc_event_log_factory.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(default_task_queue_factory_win.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(webrtc_media_engine.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(video_source_interface.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
 (..)
          libwebrtc_sys-6d04d825a142b8c1.rlib(histogram.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libwebrtc_sys-6d04d825a142b8c1.rlib(reorder_optimizer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          msvcprt.lib(MSVCP140.dll) : error LNK2005: "protected: __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::basic_streambuf<char,struct std::char_traits<char> >(void)" (??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@XZ) already defined in libwebrtc_sys-6d04d825a142b8c1.rlib(srtp_session.obj)
          msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: virtual __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::~basic_streambuf<char,struct std::char_traits<char> >(void)" (??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in libwebrtc_sys-6d04d825a142b8c1.rlib(srtp_session.obj)
          msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: int __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::sputc(char)" (?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z) already defined in libwebrtc_sys-6d04d825a142b8c1.rlib(frame_crypto_transformer.obj)
          msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: void __cdecl std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ) already defined in libwebrtc_sys-6d04d825a142b8c1.rlib(frame_crypto_transformer.obj)
          msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::basic_ostream<char,struct std::char_traits<char> >::operator<<(unsigned int)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@I@Z) already defined in libwebrtc_sys-6d04d825a142b8c1.rlib(frame_crypto_transformer.obj)
          msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::basic_ostream<char,struct std::char_traits<char> >::flush(void)" (?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ) already defined in libwebrtc_sys-6d04d825a142b8c1.rlib(frame_crypto_transformer.obj)
          msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: __cdecl std::basic_iostream<char,struct std::char_traits<char> >::basic_iostream<char,struct std::char_traits<char> >(class std::basic_streambuf<char,struct std::char_traits<char> > *)" (??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z) already defined in libwebrtc_sys-6d04d825a142b8c1.rlib(frame_crypto_transformer.obj)
          libcpmt.lib(raisehan.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(locale0.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(locale0.obj) : error LNK2005: "void __cdecl std::_Facet_Register(class std::_Facet_base *)" (?_Facet_Register@std@@YAXPEAV_Facet_base@1@@Z) already defined in msvcprt.lib(locale0_implib.obj)
          libcpmt.lib(locale0.obj) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?_Getgloballocale@locale@std@@CAPEAV_Locimp@12@XZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(locale0.obj) : error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(bool)" (?_Init@locale@std@@CAPEAV_Locimp@12@_N@Z) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(locale0.obj) : error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)" (?_Locinfo_ctor@_Locinfo@std@@SAXPEAV12@PEBD@Z) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(locale0.obj) : error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)" (?_Locinfo_dtor@_Locinfo@std@@SAXPEAV12@@Z) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(locale.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(locale.obj) : error LNK2005: "public: struct _Cvtvec __cdecl std::_Locinfo::_Getcvt(void)const " (?_Getcvt@_Locinfo@std@@QEBA?AU_Cvtvec@@XZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(locale.obj) : error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::_Pninc(void)" (?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(locale.obj) : error LNK2005: "public: int __cdecl std::ios_base::flags(void)const " (?flags@ios_base@std@@QEBAHXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(locale.obj) : error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::gptr(void)const " (?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(locale.obj) : error LNK2005: "public: __int64 __cdecl std::ios_base::width(__int64)" (?width@ios_base@std@@QEAA_J_J@Z) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(locale.obj) : error LNK2005: "public: __int64 __cdecl std::ios_base::width(void)const " (?width@ios_base@std@@QEBA_JXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(iosptrs.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(wlocale.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(wlocale.obj) : error LNK2005: "public: struct _Cvtvec __cdecl std::_Locinfo::_Getcvt(void)const " (?_Getcvt@_Locinfo@std@@QEBA?AU_Cvtvec@@XZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(wlocale.obj) : error LNK2005: "public: char const * __cdecl std::_Locinfo::_Getdays(void)const " (?_Getdays@_Locinfo@std@@QEBAPEBDXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(wlocale.obj) : error LNK2005: "public: char const * __cdecl std::_Locinfo::_Getmonths(void)const " (?_Getmonths@_Locinfo@std@@QEBAPEBDXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(wlocale.obj) : error LNK2005: "public: unsigned short const * __cdecl std::_Locinfo::_W_Getdays(void)const " (?_W_Getdays@_Locinfo@std@@QEBAPEBGXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(wlocale.obj) : error LNK2005: "public: unsigned short const * __cdecl std::_Locinfo::_W_Getmonths(void)const " (?_W_Getmonths@_Locinfo@std@@QEBAPEBGXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(wlocale.obj) : error LNK2005: "public: int __cdecl std::ios_base::flags(void)const " (?flags@ios_base@std@@QEBAHXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(wlocale.obj) : error LNK2005: "public: __int64 __cdecl std::ios_base::width(__int64)" (?width@ios_base@std@@QEAA_J_J@Z) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(wlocale.obj) : error LNK2005: "public: __int64 __cdecl std::ios_base::width(void)const " (?width@ios_base@std@@QEBA_JXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(xlocale.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xlocale.obj) : error LNK2005: "public: struct _Cvtvec __cdecl std::_Locinfo::_Getcvt(void)const " (?_Getcvt@_Locinfo@std@@QEBA?AU_Cvtvec@@XZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(xlocale.obj) : error LNK2005: "public: char const * __cdecl std::_Locinfo::_Getdays(void)const " (?_Getdays@_Locinfo@std@@QEBAPEBDXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(xlocale.obj) : error LNK2005: "public: char const * __cdecl std::_Locinfo::_Getmonths(void)const " (?_Getmonths@_Locinfo@std@@QEBAPEBDXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(xlocale.obj) : error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::_Pninc(void)" (?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(xlocale.obj) : error LNK2005: "public: unsigned short const * __cdecl std::_Locinfo::_W_Getdays(void)const " (?_W_Getdays@_Locinfo@std@@QEBAPEBGXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(xlocale.obj) : error LNK2005: "public: unsigned short const * __cdecl std::_Locinfo::_W_Getmonths(void)const " (?_W_Getmonths@_Locinfo@std@@QEBAPEBGXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(xlocale.obj) : error LNK2005: "public: int __cdecl std::ios_base::flags(void)const " (?flags@ios_base@std@@QEBAHXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(xlocale.obj) : error LNK2005: "protected: char * __cdecl std::basic_streambuf<char,struct std::char_traits<char> >::gptr(void)const " (?gptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEBAPEADXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(xlocale.obj) : error LNK2005: "public: __int64 __cdecl std::ios_base::width(__int64)" (?width@ios_base@std@@QEAA_J_J@Z) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(xlocale.obj) : error LNK2005: "public: __int64 __cdecl std::ios_base::width(void)const " (?width@ios_base@std@@QEBA_JXZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(xstol.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xstoul.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xstoll.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xstoull.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xlock.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xlock.obj) : error LNK2005: "public: __cdecl std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QEAA@H@Z) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(xlock.obj) : error LNK2005: "public: __cdecl std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QEAA@XZ) already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(xstrcoll.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xdateord.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xwctomb.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xwctomb.obj) : error LNK2005: _Getcvt already defined in msvcprt.lib(MSVCP140.dll)
          libcpmt.lib(xwcscoll.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xwcsxfrm.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xgetwctype.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xtowlower.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xtowupper.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xstrxfrm.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(xmtx.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(StlCompareStringA.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(StlCompareStringW.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(StlLCMapStringW.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          libcpmt.lib(StlLCMapStringA.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libwebrtc_sys-6d04d825a142b8c1.rlib(cd5476bda1e49e65-audio_track.rs.o)
          LINK : warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
          C:\Users\daniel\Documents\test-lk\target\debug\deps\test_lk.exe : fatal error LNK1169: one or more multiply defined symbols found


warning: `test-lk` (bin "test-lk") generated 1 warning
error: could not compile `test-lk` (bin "test-lk") due to previous error; 1 warning emitted
@theomonnom
Copy link
Member

theomonnom commented Dec 29, 2023

Hey, you will need to use +crt-static:

rustflags = ["-C", "target-feature=+crt-static"]

@daniel-abramov
Copy link
Contributor Author

Oh, thanks a lot, that really helped! 🚀

daniel-abramov added a commit to daniel-abramov/rust-sdks that referenced this issue Dec 31, 2023
theomonnom pushed a commit that referenced this issue Dec 31, 2023
Related to #277 and #249.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants