bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.09k stars 3.56k forks source link

MSVC: Linking with link.exe failed, exit code 1189 #13643

Closed Quentindeve closed 4 months ago

Quentindeve commented 5 months ago

Bevy version

0.13.2

Relevant system information

What you did

I tried compiling this very simple code:

use bevy::prelude::*;

fn main() {
    App::new().add_plugins(DefaultPlugins).run();
}

using the dynamic_linking feature.

What went wrong

I got an error while linking, with this error output:

error: linking with `link.exe` failed: exit code: 1189
  |
  = note: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX64\\x64\\link.exe" "/DEF:C:\\Users\\Quentin\\AppData\\Local\\Temp\\rustcuXqsNf\\lib.def" "/NOLOGO" "C:\\Users\\Quentin\\AppData\\Local\\Temp\\rustcuXqsNf\\symbols.o" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\bevy_dylib-3b3e709849dde055.bevy_dylib.3e08995d23d04b99-cgu.0.rcgu.o" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\bevy_dylib-3b3e709849dde055.49p3ix96gjluljou3rtwg5vwq.rcgu.rmeta" "/LIBPATH:C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps" "/LIBPATH:C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\atlmfc\\lib\\x64" "/LIBPATH:C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\build\\blake3-83520197ebfe88f9\\out" "/LIBPATH:C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\atlmfc\\lib\\x64" "/LIBPATH:C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\build\\blake3-83520197ebfe88f9\\out" "/LIBPATH:C:\\Users\\Quentin\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\windows_x86_64_msvc-0.52.5\\lib" "/LIBPATH:C:\\Users\\Quentin\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\windows_x86_64_msvc-0.48.5\\lib" "/LIBPATH:C:\\Users\\Quentin\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_internal-3e2ef5037058f840.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_gizmos-bf1c9231cc3287f6.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_winit-79de3ea5136e267d.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libaccesskit_winit-969d59b2af4f0dd3.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libaccesskit_windows-d8643870c6a2573b.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwindows-8f74920438f38dfd.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libaccesskit_consumer-3c0c955e1d9f6832.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwinit-bb0132476d7c8374.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libcursor_icon-d646107d17e8946d.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libunicode_segmentation-893d945e23c02a2a.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwindows_sys-39263e69b97f51d5.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwindows_targets-5ea1f08602d9d39a.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_ui-2a686a60dbfe3dbf.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libtaffy-2962b3f1350676eb.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libgrid-8877a0b2ff79282a.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libslotmap-bb8074dd40e153f4.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_text-d9b92c50e6c3a49c.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libglyph_brush_layout-a73995344df5f6a3.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libxi_unicode-b2c1364650366949.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libapprox-33a41d34267c33cc.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libab_glyph-b258124d120aada8.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libowned_ttf_parser-97e273fff5a13c7f.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libttf_parser-96709598ab9df1a1.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libab_glyph_rasterizer-04c605a616b1a2c6.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_sprite-67a76285d278b1d6.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\librectangle_pack-0a4d8bd5301a6efc.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libguillotiere-42edd4186da708fe.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libsvg_fmt-41169088dd3ad5dc.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libeuclid-94031b597c447af3.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_gltf-7feebe8c7c7d4c44.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libpercent_encoding-f7be7adaab2cc76b.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libgltf-bace77249f8ae828.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libgltf_json-c3f4da01fe7f7bf1.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libserde_json-6fed539bbf3bc23e.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libitoa-58ff8cc975d6f409.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libryu-7f34d44a04ef3ac1.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_pbr-11f416beb53e7f83.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_gilrs-1e3a9dbccb0d897e.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libgilrs-1541ca3d87f32124.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libvec_map-5c11c87287921aba.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libfnv-c3685e653815410e.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libgilrs_core-574d62d794fd8236.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_core_pipeline-77416530a4a6ad14.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libradsort-152b39dcd627a306.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_audio-a6b907e68a9cc6c4.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\librodio-88f07a3086fc5e1a.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\liblewton-0972558912e4755f.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libogg-4ed937f987458546.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libtinyvec-8bcdbcc87b35f6bd.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libtinyvec_macros-a5b8d8cc33ec45d4.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libcpal-b079a698f4564faf.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libdasp_sample-03bd8dff56ba0881.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwindows-3fa87f412a32cfb7.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwindows_core-e4b166c0fefc09e8.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwindows_result-ff76aa2a0eecdc67.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_animation-9016873c29a77f09.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_scene-9ecc7c4ed3bc92f1.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_render-5da0cba395b9de98.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libruzstd-bbacc34bd2fb3dd9.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libtwox_hash-2e5183158ccd404e.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libnaga_oil-bb92e5300f43be32.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libdata_encoding-ce6615df2dbe786f.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libunicode_ident-a803ea052b0d2916.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_mikktspace-7eaed88e8cff4de1.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libimage-74d72e325b086abb.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libcolor_quant-e66bd2dfc4f09c58.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libpng-e6d87204b1125814.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libflate2-db34d54565e60cb3.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libminiz_oxide-77449deb620fb9e9.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libfdeflate-1c67bf2f97c5108f.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libsimd_adler32-261c895fc1764fa4.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libcrc32fast-073efc644e6d0c90.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbyteorder-d7c5d3dcb859e580.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libnum_traits-f29b9e25e12f1dde.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libktx2-05dd4b1e6f43e136.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbitflags-328ecab904d0935c.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libencase-319ee580d12b716c.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libconst_panic-16badcc892c1c96b.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libhexasphere-60d115158ba0994c.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libconstgebra-7ad9cb73c17b6a40.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libconst_soft_float-0a7b8d48b2f1da80.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwgpu-ad26120d54e7bac3.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libstatic_assertions-3460d9439209bdd3.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwgpu_core-9d35884f3d04fd31.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwgpu_hal-b1f4508a7150a944.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\librenderdoc_sys-c7f1b5c6fbc016a6.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libgpu_descriptor-150b75f08902f13f.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libgpu_descriptor_types-39c485c6972ce8e7.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libhassle_rs-7501bfc68db718b4.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwidestring-a053b1ee055fb99a.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libcom-f5d326a4d225fd73.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libprofiling-e1884f8face701cf.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libgpu_alloc-a44ba7f2802f6ae7.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libgpu_alloc_types-c5b1a9261f6d396c.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libash-9574ed0eb8e46597.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\liblibloading-92d57097ddf7c534.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libglutin_wgl_sys-96f076aa915869f8.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libglow-930a1d7fea83f6dc.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libgpu_allocator-1c8332d69369c9a2.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwindows-f837662c2c5c8d1d.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwindows_core-26d71df8480c6f9a.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libnaga-8ef0d0e18b0f92bb.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\librustc_hash-dd6ef569a8a9348f.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libhexf_parse-14200b8e8e9be3f5.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libunicode_xid-50a8e206639ed037.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libcodespan_reporting-59f1e1699cc92ff0.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libunicode_width-47b790421e3f4cae.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libtermcolor-439f8526b2b04403.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwinapi_util-92dcc7e5a3b7c1fc.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwindows_sys-e575b4bb81ef13af.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libspirv-aea7925f32ab9000.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libd3d12-a23ea4529095020a.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\liblibloading-4fd8e41d988de0be.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\librange_alloc-67810e8d0adffc99.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbit_set-8edae009480839f9.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbit_vec-7f0f570830cff421.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwgpu_types-50a003163f0cf42a.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_window-73cfb30eb4b5ceb8.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libraw_window_handle-519f3bf48f547e16.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_transform-aec163e60e8d1da2.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_hierarchy-909655bb7f795989.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_input-f30d717b07461611.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_diagnostic-633ec966fb61a98b.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_time-c0be8c3b136e9ea9.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libconst_fnv1a_hash-804b9d5cbc81a61d.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_core-a31fc7f67eec6ee8.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_asset-1662864f4e62a457.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libblake3-9dc8d371578c70b0.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libconstant_time_eq-dcc212ff5d41e0a2.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libarrayvec-29de2c4fc2266164.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libarrayref-d22641fceb3e48e5.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libasync_broadcast-b6d7a6c690fc93ea.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libevent_listener-e189252eb93b8e92.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libron-9dd569ea0c90b942.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbitflags-8420ee67c855bcb2.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbase64-f4d69d8d1ed2fe2d.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libparking_lot-0208e70e63f3739f.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libparking_lot_core-ca01eab53d40588f.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwindows_targets-cf3f24f8545fa24a.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\liblock_api-0fb10822afa52076.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libscopeguard-f126b8dbe9dd7db7.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libcrossbeam_channel-eaff417fb6a21d60.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_log-b41f464838678911.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libtracing_log-14b1dd3cbd06b354.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libtracing_subscriber-dfdefda2955e903e.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libnu_ansi_term-dad5a2d87ad644aa.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\liboverload-b2adc6dc0e77092c.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libwinapi-4df0d498827896a1.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libsharded_slab-2defdd6173e4aadb.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\liblazy_static-379c6c9ceb006e86.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libmatchers-971728ca241726b0.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libregex_automata-b222910fc6a53a62.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libregex_syntax-5782b9d2fc304605.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libregex-1e31a34a5c5bcc35.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libregex_automata-07284e29fbd9ec12.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libaho_corasick-2aab75689222874d.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libmemchr-b78dc967d1203ee3.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libregex_syntax-73e507830b5631a0.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libtracing_log-71442a6b1f76ce07.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\liblog-adccab7f17cf5614.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libasync_fs-234555990351a985.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libblocking-12373af4e6006613.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libpiper-ed7e2a6036bcf4c6.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libatomic_waker-afcc52c07c448502.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libasync_lock-0058362ec823dfbb.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_a11y-73871c2afba7fbb7.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libaccesskit-6150d916d2eb5550.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_app-aed1758bea343b34.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_ecs-b6bdc906f5aa57d7.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libthread_local-0c6d1fc386d96b4e.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_tasks-118a60bcde52a954.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libasync_channel-4a195e7b947e2a9f.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libevent_listener_strategy-1e14706620cbbddd.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libevent_listener-3afe317099ec4e79.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libasync_executor-54b061353298119f.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libslab-df20b5f0ad90327e.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libfutures_lite-29f8c47ce5cd493f.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libfutures_io-69a12edc3331c7c7.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libfutures_core-f7bdf6cb3963f0f8.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libparking-77b9b3194b225b62.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libfastrand-059855b408929546.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libconcurrent_queue-f2b1956a7214f627.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libcrossbeam_utils-8c08dca7c3b4a06c.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libasync_task-84128ea3c832bc58.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_reflect-424e238cc128423d.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libsmol_str-ebfc5aadf63a44a7.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\liberased_serde-6de621b3513b83a6.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libtypeid-166981ff7765bdd7.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_math-f9d730ce6f318f2a.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libglam-fbd2c87d944df57c.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbytemuck-b605f40117e7f6ed.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libdowncast_rs-e288163cbec02e35.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_ptr-68354b5346b51953.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libbevy_utils-9b59117e48e5bc37.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libnonmax-8807b3c180010e15.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libweb_time-f984e70fb1cf3fb8.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libtracing-5c7ae71178407695.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libpin_project_lite-e992ebcd592bab84.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libtracing_core-b886ae1cb602398e.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libthiserror-cef405c0c1034eb7.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libsmallvec-d4fa7f675a05f059.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libpetgraph-b522972db1cbc5d6.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libindexmap-3f4c370d8129a461.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libequivalent-21e74fe755f473aa.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libfixedbitset-0915453ca4360fc2.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libhashbrown-eca89844947212bc.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\liballocator_api2-e342a0fcbd99769e.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libahash-3fa867cb706c721e.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libonce_cell-d20b4003b6caba86.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libzerocopy-ffa1f6a2af44a08a.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libuuid-57b1d971868b46d4.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libgetrandom-9f6e3745cb587e75.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libcfg_if-ffb7f842c0820f0d.rlib" "C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\libserde-898787a16f92135f.rlib" "/LIBPATH:C:\\Users\\Quentin\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "std-8ac42145e0282c2a.dll.lib" "C:\\Users\\Quentin\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-d827b00cff8216d8.rlib" "windows.0.48.5.lib" "windows.0.48.5.lib" "windows.0.52.0.lib" "windows.0.52.0.lib" "windows.0.52.0.lib" "ole32.lib" "opengl32.lib" "windows.0.52.0.lib" "windows.0.52.0.lib" "windows.0.52.0.lib" "windows.0.52.0.lib" "windows.0.52.0.lib" "advapi32.lib" "cfgmgr32.lib" "credui.lib" "d2d1.lib" "d3d12.lib" "d3dcompiler.lib" "dcomp.lib" "dwrite.lib" "dxgi.lib" "gdi32.lib" "kernel32.lib" "msimg32.lib" "ole32.lib" "oleaut32.lib" "opengl32.lib" "secur32.lib" "synchronization.lib" "user32.lib" "windowscodecs.lib" "winspool.lib" "bcrypt.lib" "advapi32.lib" "kernel32.lib" "advapi32.lib" "kernel32.lib" "ntdll.lib" "userenv.lib" "ws2_32.lib" "kernel32.lib" "ws2_32.lib" "kernel32.lib" "/defaultlib:msvcrt" "C:\\Users\\Quentin\\AppData\\Local\\Temp\\rustcuXqsNf\\api-ms-win-core-synch-l1-2-0.lib" "C:\\Users\\Quentin\\AppData\\Local\\Temp\\rustcuXqsNf\\bcryptprimitives.lib" "/NXCOMPAT" "/LIBPATH:C:\\Users\\Quentin\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "/OUT:C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\bevy_dylib-3b3e709849dde055.dll" "/OPT:REF,NOICF" "/DLL" "/IMPLIB:C:\\Users\\Quentin\\Projets\\conway-bevy\\target\\debug\\deps\\bevy_dylib-3b3e709849dde055.dll.lib" "/DEBUG" "/PDBALTPATH:%_PDB%" "/NATVIS:C:\\Users\\Quentin\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\intrinsic.natvis" "/NATVIS:C:\\Users\\Quentin\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\Quentin\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/NATVIS:C:\\Users\\Quentin\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libstd.natvis"
  = note: LINK : fatal error LNK1189: limite de 65535 objets dépassée pour la bibliothèque
SkiFire13 commented 5 months ago

Have you enabled optimizations for your dependencies as instructed by the fast compiles getting started?

Quentindeve commented 5 months ago

Before your answer I did not, but I tried again with this Cargo.toml

[package]
name = "conway-bevy"
version = "0.1.0"
edition = "2021"

[profile.dev]
opt-level = 1

[dependencies]
bevy = { version = "0.13.2", features = ["dynamic_linking"] }

And it didn't work too

Quentindeve commented 5 months ago

I tried compiling it with rust-lld and the same configuration as above, and got the same style of error message: = note: rust-lld: error: too many exported symbols (got 157889, max 65535)

forbjok commented 5 months ago

Pretty sure this is exactly the same thing I ran into when I tried using the dynamic_linking feature years ago, and came to the conclusion that it just doesn't work on Windows.

SkiFire13 commented 5 months ago

but I tried again with this Cargo.toml

You're missing this part:

[profile.dev.package."*"]
opt-level = 3

Pretty sure this is exactly the same thing I ran into when I tried using the dynamic_linking feature years ago, and came to the conclusion that it just doesn't work on Windows.

Did you just enable the feature or did you also set the optimization level as explained by the guide I previously linked?

janhohenheim commented 4 months ago

As someone who has run into this multiple times on Windows, I'm very sure @SkiFire13's last comment is the correct fix. Maybe we should be more explicit in the docs that opt-level = 3 is not just an optimization, but actually necessary when using Windows + LLD + dynamic linking? Changing the tags accordingly. Ping me if the suggested fix does not work @Quentindeve :)

SkiFire13 commented 4 months ago

Maybe we should be more explicit in the docs

It is already quite explicit

Screenshot at 24-06-17 ! 18-48-27

The big yellow box is telling exactly this, specifying "must" and even reporting the exact error that people run into. I don't know what could be changed, maybe move it before the instructions to enable dynamic linking?

janhohenheim commented 4 months ago

@SkiFire13 haha, it seems my mind just skipped the yellow box automatically. Thanks, you're right. Closing this.