jkawamoto / ctranslate2-rs

Rust bindings for OpenNMT/CTranslate2
https://docs.rs/ct2rs
MIT License
22 stars 3 forks source link

Compile errors on windows #63

Closed thewh1teagle closed 5 months ago

thewh1teagle commented 5 months ago
log ```console PS C:\Users\User\Documents\code\rtranslate> cargo run Compiling proc-macro2 v1.0.85 Compiling unicode-ident v1.0.12 Compiling cc v1.0.99 Compiling windows_x86_64_msvc v0.52.5 Compiling strsim v0.11.1 Compiling pkg-config v0.3.30 Compiling crossbeam-utils v0.8.20 Compiling windows-targets v0.52.5 Compiling windows-sys v0.52.0 Compiling quote v1.0.36 Compiling unicode-width v0.1.13 Compiling syn v2.0.66 Compiling ident_case v1.0.1 Compiling winapi-util v0.1.8 Compiling libc v0.2.155 Compiling fnv v1.0.7 Compiling cmake v0.1.50 Compiling once_cell v1.19.0 Compiling syn v1.0.109 Compiling serde v1.0.203 Compiling memchr v2.7.4 Compiling crossbeam-epoch v0.9.18 Compiling link-cplusplus v1.0.9 Compiling either v1.12.0 Compiling scratch v1.0.7 Compiling cfg-if v1.0.0 Compiling rayon-core v1.12.1 Compiling anyhow v1.0.86 Compiling getrandom v0.2.15 Compiling crossbeam-deque v0.8.5 Compiling onig_sys v69.8.1 Compiling termcolor v1.4.1 Compiling paste v1.0.15 Compiling thiserror v1.0.61 Compiling cxxbridge-flags v1.0.124 Compiling portable-atomic v1.6.0 Compiling autocfg v1.3.0 Compiling cxx v1.0.124 Compiling codespan-reporting v0.11.1 Compiling itertools v0.10.5 Compiling num-traits v0.2.19 Compiling darling_core v0.20.9 Compiling rand_core v0.6.4 Compiling aho-corasick v1.1.3 Compiling esaxx-rs v0.1.10 Compiling sentencepiece-sys v0.11.2 Compiling same-file v1.0.6 Compiling regex-syntax v0.8.4 Compiling anstyle v1.0.7 Compiling lazy_static v1.4.0 Compiling encode_unicode v0.3.6 Compiling ppv-lite86 v0.2.17 Compiling serde_derive v1.0.203 Compiling thiserror-impl v1.0.61 Compiling utf8parse v0.2.2 Compiling darling_macro v0.20.9 Compiling minimal-lexical v0.2.1 Compiling serde_json v1.0.117 Compiling darling v0.20.9 Compiling derive_builder_core v0.20.0 Compiling nom v7.1.3 Compiling regex-automata v0.4.7 Compiling derive_builder_macro v0.20.0 Compiling anstyle-parse v0.2.4 Compiling rand_chacha v0.3.1 Compiling monostate-impl v0.1.13 Compiling console v0.15.8 Compiling anstyle-wincon v3.0.3 Compiling walkdir v2.5.0 Compiling prost-derive v0.11.9 Compiling rayon v1.10.0 Compiling cxx-build v1.0.124 Compiling itertools v0.11.0 Compiling anstyle-query v1.1.0 Compiling itoa v1.0.11 Compiling base64 v0.13.1 Compiling is_terminal_polyfill v1.70.0 Compiling smallvec v1.13.2 Compiling bytes v1.6.0 Compiling number_prefix v0.4.0 Compiling unicode-segmentation v1.11.0 Compiling bitflags v1.3.2 Compiling ryu v1.0.18 Compiling colorchoice v1.0.1 Compiling macro_rules_attribute-proc_macro v0.2.0 Compiling anstream v0.6.14 Compiling spm_precompiled v0.1.4 Compiling onig v6.4.0 Compiling rayon-cond v0.3.0 Compiling prost v0.11.9 Compiling macro_rules_attribute v0.2.0 Compiling indicatif v0.17.8 Compiling ct2rs v0.8.5 Compiling unicode-normalization-alignments v0.1.12 Compiling monostate v0.1.13 Compiling regex v1.10.5 Compiling rand v0.8.5 Compiling derive_builder v0.20.0 Compiling cxxbridge-macro v1.0.124 Compiling num-derive v0.3.3 Compiling itertools v0.12.1 Compiling log v0.4.21 Compiling eyre v0.6.12 Compiling unicode_categories v0.1.1 Compiling clap_lex v0.7.1 Compiling heck v0.5.0 Compiling clap_builder v4.5.7 Compiling clap_derive v4.5.5 Compiling tokenizers v0.19.1 Compiling indenter v0.3.3 Compiling clap v4.5.7 Compiling sentencepiece v0.11.2 Compiling rtranslate v0.1.0 (C:\Users\User\Documents\code\rtranslate) error: linking with `link.exe` failed: exit code: 1169 | = note: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\User\\AppData\\Local\\Temp\\rustc71Ivie\\symbols.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.10k5c8ptltynzx6i.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.10nk03d7pdfru8gz.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.13vvqetqrp2stqsm.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.168wpnb4ownnntzo.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.16nczqr7iquf2qo1.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.1cfwazmbvlu5wky4.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.1fo7bpvb5ficjbhw.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.1ixlakyg9rmcl6fp.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.1ki97ih5tay8adp.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.1oanzdydkig3nfam.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.1oi3s41r2e5wm0ia.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.1sncv9igab97n42o.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.1u735vi04a5szmcl.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.1w5uq6xc96hmlwy9.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.1y5g8kh9nqge2r06.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.1yw3rebh5t5xfkdc.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.22izk3rbnuop6tc5.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.22ukbcxh8y9bxglx.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.26wjzhmdn2mkormc.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.282ilnisb26k48u9.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2a8rhxqirtjypeox.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2d34h5mbp90uszbe.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2fj67ymf5ll4in2k.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2fjkhk1wc8yovi3n.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2fvdqih43jhzxiqc.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2h9arch32y7b0hsf.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2hpvlzyyu1r5nlx4.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2hz3t0y9ha5euqnh.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2i7gfiwtwo3enc95.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2la59pao83czo43g.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2niyvh32teh6onfk.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2ppgt1arbruq29eb.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2r708gebr4a2immj.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2u6ojqqb3zu7llki.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2ulpow4ee7kat3ks.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2wl0shomdk6rx7n3.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2x12ln8rwsduz5b1.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2x33sajfx2q8aehe.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.2xk7cc7m9gbitw3c.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.30nkqx08i3gdolqf.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.30us8j4w56td153s.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.325i3qgpj5wg1vhr.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.33v05e6i7k2mpdim.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.341rusduhhceni0n.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.345zi0nrc6qx694l.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.36jqwsyhzk0tih8x.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.37z0ywsv8xywk2ab.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.390s9vdv4g8j23y4.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.3gjjgletc65kp64g.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.3i7brm05ojq8ja4c.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.3jhfzuq21el4ptxr.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.3jk1t8dfa3moa5af.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.3n6ihparf6yevn8o.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.3pgw41y7m2gmpsom.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.3q4ssil6qzf3k1to.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.3w43gtcat7j9ecdt.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.41l6gnwesmf8coko.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.46ng9ktin8jp73zw.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4ayanvxj5lhpfu3i.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4buh5owi68ezr28r.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4d2zgp3ita137xz.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4e6ebn1pt4p1op0k.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4epyhewxo8vu0dx4.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4lob44hy7viic4f0.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4p0pz6m615vk3sbl.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4prwn297rpvk3y14.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4rrber6hdefg2bf0.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4saqkbds6b7uw54a.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4sphz6z6h94mzipl.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4stjwdj9xpk7fnf5.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4su110fssralrqta.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4t5t3g5qj4srfk8b.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4ud9hc6s2z1wqe8s.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4ug4awtby20tuss5.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4umi6dfulobacpo7.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4w80px9qpfoio0jg.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4wzb2c7p4r6envpe.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4xaw32rbzgxrb3lo.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4xox3n5gjn4mf5xx.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4xwhz0tipsnbtfbh.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.4zgdu6rszxi6zncl.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.51uy4on592zvj63f.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.52v9s7cg9e9vxiit.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.58jwp8588p5zahor.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.59b2dlwyc39hryka.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.5cvg8g5y7oywmxmo.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.6jjo6a60e1pwx89.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.94o55ekpiqywrsz.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.9rz6unqulzyxowd.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.aarjqiwy09h6fag.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.auh94xd1k9vffr2.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.e4zn4owlejyuvdd.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.g3um9t3xbf4oked.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.iz6ikw02403v21s.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.lhu414oqkqkmfcx.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.u8nhg1u4czmw447.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.yo84e55eshzr3mv.rcgu.o" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.18u3ai9oipt61907.rcgu.o" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps" "/LIBPATH:C:\\Users\\User\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\windows_x86_64_msvc-0.52.5\\lib" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\ct2rs-6015e09622ba4818\\out\\build\\Release" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\ct2rs-6015e09622ba4818\\out\\build\\third_party\\cpu_features\\Release" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\ct2rs-6015e09622ba4818\\out\\build\\third_party\\cpu_features\\utils.dir\\Release" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\ct2rs-6015e09622ba4818\\out\\build\\third_party\\ruy\\ruy\\profiler\\Release" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\ct2rs-6015e09622ba4818\\out\\build\\third_party\\ruy\\ruy\\Release" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\ct2rs-6015e09622ba4818\\out\\build\\third_party\\ruy\\third_party\\cpuinfo\\deps\\clog\\Release" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\ct2rs-6015e09622ba4818\\out\\build\\third_party\\ruy\\third_party\\cpuinfo\\Release" "/LIBPATH:C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\atlmfc\\lib\\x64" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\ct2rs-6015e09622ba4818\\out" "/LIBPATH:C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\atlmfc\\lib\\x64" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\cxx-1ed36e4af8cf20c9\\out" "/LIBPATH:C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\atlmfc\\lib\\x64" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\link-cplusplus-1682f4f12e112d0b\\out" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\sentencepiece-sys-aae8ddae2f3d64a1\\out\\build\\src" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\sentencepiece-sys-aae8ddae2f3d64a1\\out\\lib" "/LIBPATH:C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\atlmfc\\lib\\x64" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\sentencepiece-sys-aae8ddae2f3d64a1\\out" "/LIBPATH:C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\atlmfc\\lib\\x64" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\esaxx-rs-576469da666eeba0\\out" "/LIBPATH:C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\atlmfc\\lib\\x64" "/LIBPATH:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\build\\onig_sys-e1bf52c9434a83ac\\out" "/LIBPATH:C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libct2rs-7ffc464e2fdf2b7c.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libsentencepiece-885730256a8c7770.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\liblibc-f0068beded3f519d.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libprost-33de62bfd67a393d.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libbytes-73d3a820dbff2e74.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libsentencepiece_sys-913504995092624c.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libnum_traits-e7550109b10a851a.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libcxx-c0c3b3b3202c55b0.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\liblink_cplusplus-15fbc1eddc556309.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libtokenizers-747bdde5ed8bdd62.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libesaxx_rs-bf422c7cd91b9333.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libthiserror-14bef8377a898b8d.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libregex-63df9e5ffb28bf44.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libregex_automata-5974273b5c13145c.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libaho_corasick-8a34182bc516d6f1.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libregex_syntax-a110f9efa5a21eba.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libunicode_normalization_alignments-a81b736e56129644.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libsmallvec-0fb7b73e2875c23f.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libspm_precompiled-399f126afd2dbabe.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libbase64-e21fcab521a8ae0d.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libunicode_segmentation-63c551e96017c3eb.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libnom-70f66f507b0fe593.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libmemchr-c626795e0ad74677.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libunicode_categories-f4ae91a4fa8e8549.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\librand-0a0020e8a0b2c245.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\librand_chacha-d43925f636b6b409.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libppv_lite86-34bd528afb19f8b6.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\librand_core-21acad4f085d0922.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libgetrandom-c9d3160fd621d177.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libcfg_if-33233a1d624453b3.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libserde_json-f31d0cd5fcd74771.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libitoa-3a7a30f5a1d26add.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libryu-e325aa75e4a46fbf.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libitertools-be85fcf2cd154488.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libmonostate-a9e3b9ede29b8961.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libmacro_rules_attribute-68f85bf417bc0963.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libindicatif-99e47be7fad0cf73.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libportable_atomic-182d0f3a94ff1301.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libnumber_prefix-2e72258325627347.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libconsole-570e443f3bcd83fe.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libencode_unicode-518cf7d31876b540.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libunicode_width-22fb0dde6324f385.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\librayon_cond-f22493e17e7c518d.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libitertools-45631838116c71f2.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\librayon-5aa90d655f968c7d.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\librayon_core-b09bd80575cf54d2.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libcrossbeam_deque-17acf588cd6eed57.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libcrossbeam_epoch-e124fa479f394302.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libcrossbeam_utils-39a77d9d0bea534d.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libeither-d41aa24aa7affbc2.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libserde-c0ac307dc6d41b33.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libonig-9c33f827cb7b1dcd.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libbitflags-6ce6519ca3cf07ab.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libonig_sys-016146b606a32a76.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libderive_builder-618fa4d32f2d16e6.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\liblazy_static-6b2829e331e4a5fb.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\liblog-9a192baf9d8aa2c5.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libanyhow-78537d87f7eff390.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libclap-9d25b2f4275ce47e.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libclap_builder-937457fc7263bcf2.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libstrsim-bd002b84e5983da5.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libanstream-e99db501bcb2612b.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libanstyle_query-15a66e4da4b63a40.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libis_terminal_polyfill-db693d14a8b8f0c2.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libanstyle_wincon-3d919a9e7ca64b16.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libwindows_sys-3d23df417c38a546.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libwindows_targets-38f25c66d3b3ea7b.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libcolorchoice-62b06949ce64c4d2.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libanstyle_parse-17c86735ade8e493.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libutf8parse-a2017c73040732a5.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libclap_lex-a6acc959a571cf89.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libanstyle-ac44f53b109f2dc4.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libeyre-d53af009515277ba.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libindenter-9e6b300e0e986304.rlib" "C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\libonce_cell-1cf0ffd42ca89777.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-af7a289140bfd09b.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-804f96e85949d3c7.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_demangle-d732e2e30f000f5c.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_detect-245c07b81320e419.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libhashbrown-071209d3d999dcc9.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_alloc-f692450d6626dc45.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-80b2971dd5ef99d4.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcfg_if-9b96265a2194d52d.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-9f5f4b367cf5c108.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-1c3a36fab1085cf8.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librustc_std_workspace_core-2cc1781d1b9a07fd.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-9e99b6830b9b39fb.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-d4d285127ad54f3d.rlib" "legacy_stdio_definitions.lib" "bcrypt.lib" "advapi32.lib" "windows.0.52.0.lib" "kernel32.lib" "advapi32.lib" "bcrypt.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "kernel32.lib" "ws2_32.lib" "kernel32.lib" "ntdll.lib" "kernel32.lib" "msvcrt.lib" "/NXCOMPAT" "/LIBPATH:C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/OUT:C:\\Users\\User\\Documents\\code\\rtranslate\\target\\debug\\deps\\rtranslate.exe" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis" = note: libsentencepiece_sys-913504995092624c.rlib(97be5a9275ae019e-sentencepiece.o) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(error.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(sentencepiece_processor.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(flag.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(message_lite.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(util.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(filesystem.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(common.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(arenastring.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(repeated_field.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(generated_message_util.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(sentencepiece_model.pb.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(normalizer.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(model_interface.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(model_factory.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(sentencepiece.pb.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(stringpiece.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(strutil.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(coded_stream.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(arena.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(zero_copy_stream.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(parse_context.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(zero_copy_stream_impl_lite.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(zero_copy_stream_impl.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(status.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(int128.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(implicit_weak_message.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(extension_set.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(generated_enum_util.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(bpe_model.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(char_model.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(unigram_model.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(word_model.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(structurally_valid.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(wire_format_lite.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(io_win32.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libsentencepiece_sys-913504995092624c.rlib(stringprintf.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) libcxx-c0c3b3b3202c55b0.rlib(4d1fc3575f679959-cxx.o) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' in libct2rs-7ffc464e2fdf2b7c.rlib(a027e092e579af5f-config.rs.o) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: int __cdecl std::basic_streambuf >::sputc(char)" (?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHD@Z) already defined in libcpmt.lib(locale.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: void __cdecl std::basic_ostream >::_Osfx(void)" (?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAXXZ) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(utils.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: class std::basic_ostream > & __cdecl std::basic_ostream >::put(char)" (?put@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@D@Z) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(storage_view.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: class std::basic_ostream > & __cdecl std::basic_ostream >::flush(void)" (?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@XZ) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(utils.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "protected: __cdecl std::basic_streambuf >::basic_streambuf >(void)" (??0?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAA@XZ) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(model_reader.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: virtual __cdecl std::basic_streambuf >::~basic_streambuf >(void)" (??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(model_reader.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "protected: char * __cdecl std::basic_streambuf >::_Pninc(void)" (?_Pninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ) already defined in libcpmt.lib(locale.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: virtual __cdecl std::basic_ios >::~basic_ios >(void)" (??1?$basic_ios@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(model_reader.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: virtual __cdecl std::basic_ostream >::~basic_ostream >(void)" (??1?$basic_ostream@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(translator.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: class std::basic_ostream > & __cdecl std::basic_ostream >::operator<<(int)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@H@Z) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(storage_view.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: class std::basic_ostream > & __cdecl std::basic_ostream >::operator<<(__int64)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@_J@Z) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(storage_view.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: class std::basic_ostream > & __cdecl std::basic_ostream >::operator<<(float)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QEAAAEAV01@M@Z) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(storage_view.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: __cdecl std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QEAA@H@Z) already defined in libcpmt.lib(xlock.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: __cdecl std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QEAA@XZ) already defined in libcpmt.lib(xlock.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: __cdecl std::locale::id::operator unsigned __int64(void)" (??Bid@locale@std@@QEAA_KXZ) already defined in libcpmt.lib(wcout.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: bool __cdecl std::codecvt_base::always_noconv(void)const " (?always_noconv@codecvt_base@std@@QEBA_NXZ) already defined in libcpmt.lib(wcout.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: static unsigned __int64 __cdecl std::codecvt::_Getcat(class std::locale::facet const * *,class std::locale const *)" (?_Getcat@?$codecvt@DDU_Mbstatet@@@std@@SA_KPEAPEBVfacet@locale@2@PEBV42@@Z) already defined in libcpmt.lib(locale.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: int __cdecl std::basic_streambuf >::sbumpc(void)" (?sbumpc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ) already defined in libcpmt.lib(locale.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: int __cdecl std::basic_streambuf >::sgetc(void)" (?sgetc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ) already defined in libcpmt.lib(locale.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: int __cdecl std::basic_streambuf >::snextc(void)" (?snextc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QEAAHXZ) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(utils.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "protected: char * __cdecl std::basic_streambuf >::_Gninc(void)" (?_Gninc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IEAAPEADXZ) already defined in libcpmt.lib(locale.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "protected: virtual __int64 __cdecl std::basic_streambuf >::xsgetn(char *,__int64)" (?xsgetn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEAD_J@Z) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(model_reader.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "protected: virtual __int64 __cdecl std::basic_streambuf >::xsputn(char const *,__int64)" (?xsputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@MEAA_JPEBD_J@Z) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(model_reader.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: __cdecl std::basic_istream >::basic_istream >(class std::basic_streambuf > *,bool)" (??0?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@_N@Z) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(model_reader.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: virtual __cdecl std::basic_istream >::~basic_istream >(void)" (??1?$basic_istream@DU?$char_traits@D@std@@@std@@UEAA@XZ) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(model_reader.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: bool __cdecl std::basic_istream >::_Ipfx(bool)" (?_Ipfx@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAA_N_N@Z) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(utils.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: class std::basic_istream > & __cdecl std::basic_istream >::read(char *,__int64)" (?read@?$basic_istream@DU?$char_traits@D@std@@@std@@QEAAAEAV12@PEAD_J@Z) already defined in libct2rs-7ffc464e2fdf2b7c.rlib(model.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: struct _Cvtvec __cdecl std::_Locinfo::_Getcvt(void)const " (?_Getcvt@_Locinfo@std@@QEBA?AU_Cvtvec@@XZ) already defined in libcpmt.lib(wcout.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: unsigned short const * __cdecl std::_Locinfo::_W_Getdays(void)const " (?_W_Getdays@_Locinfo@std@@QEBAPEBGXZ) already defined in libcpmt.lib(wlocale.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: unsigned short const * __cdecl std::_Locinfo::_W_Getmonths(void)const " (?_W_Getmonths@_Locinfo@std@@QEBAPEBGXZ) already defined in libcpmt.lib(wlocale.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "protected: __cdecl std::basic_streambuf >::basic_streambuf >(void)" (??0?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAA@XZ) already defined in libcpmt.lib(wcout.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: virtual __cdecl std::basic_streambuf >::~basic_streambuf >(void)" (??1?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@UEAA@XZ) already defined in libcpmt.lib(wcout.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: unsigned short __cdecl std::basic_streambuf >::sputc(wchar_t)" (?sputc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QEAAG_W@Z) already defined in libcpmt.lib(wlocale.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "protected: wchar_t * __cdecl std::basic_streambuf >::_Pninc(void)" (?_Pninc@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@IEAAPEA_WXZ) already defined in libcpmt.lib(wcout.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: virtual __cdecl std::basic_ios >::~basic_ios >(void)" (??1?$basic_ios@_WU?$char_traits@_W@std@@@std@@UEAA@XZ) already defined in libcpmt.lib(wcout.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "public: void __cdecl std::basic_ios >::setstate(int,bool)" (?setstate@?$basic_ios@_WU?$char_traits@_W@std@@@std@@QEAAXH_N@Z) already defined in libcpmt.lib(wcout.obj) msvcprt.lib(MSVCP140.dll) : error LNK2005: "protected: __cdecl std::basic_ios >::basic_ios >(void)" (??0?$basic_ios@_WU?$char_traits@_W@std@@@std@@IEAA@XZ) already defined in libcpmt.lib(wcout.obj) Creating library C:\Users\User\Documents\code\rtranslate\target\debug\deps\rtranslate.lib and object C:\Users\User\Documents\code\rtranslate\target\debug\deps\rtranslate.exp LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library C:\Users\User\Documents\code\rtranslate\target\debug\deps\rtranslate.exe : fatal error LNK1169: one or more multiply defined symbols found error: could not compile `rtranslate` (bin "rtranslate") due to 1 previous error ```
thewh1teagle commented 5 months ago

Adding

RUSTFLAGS="-C target-feature=+crt-static"

to environment variables before compile fixed the compile error

jkawamoto commented 5 months ago

Thank you! I have updated README.md to mention that Windows users need to set the above environment variables.