Jake-Shadle / xwin

A utility for downloading and packaging the Microsoft CRT & Windows SDK headers and libraries needed for compiling and linking programs targeting Windows.
Apache License 2.0
417 stars 40 forks source link

undefined symbol __declspec(dllimport) #78

Closed MalekiRe closed 1 year ago

MalekiRe commented 1 year ago

I'm working on trying to cross compile a wrapper library that I made, and i worked my way through things, but I don't understand how to resolve an error like this.

[malek@malek-box test-project]$  CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUSTFLAGS="-Lnative=/xwin/crt/lib/x86_64 -Lnative=/xwin/sdk/lib/um/x86_64 -Lnative=/xwin/sdk/lib/ucrt/x86_64" RC=x86_64-w64-mingw32-windres RUSTFLAGS="-C target-feature=+crt-static" cargo xwin build --target=x86_64-pc-windows-msvc
warning: output filename collision.
The bin target `test-project` in package `test-project v0.1.0 (/home/malek/IdeaProjects/test-project)` has the same output filename as the lib target `test-project` in package `test-project v0.1.0 (/home/malek/IdeaProjects/test-project)`.
Colliding filename is: /home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.pdb
The targets should have unique names.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
warning: output filename collision.
The bin target `test-project` in package `test-project v0.1.0 (/home/malek/IdeaProjects/test-project)` has the same output filename as the lib target `test-project` in package `test-project v0.1.0 (/home/malek/IdeaProjects/test-project)`.
Colliding filename is: /home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/test_project.pdb
The targets should have unique names.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
   Compiling stereokit-sys v2.5.4 (/home/malek/IdeaProjects/stereokit-sys)
   Compiling stereokit v0.16.7 (/home/malek/IdeaProjects/stereokit-rs)
   Compiling test-project v0.1.0 (/home/malek/IdeaProjects/test-project)
error: linking with `lld-link` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/malek/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/opt/android-ndk:/opt/android-sdk/cmdline-tools/latest/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/malek/.local/share/JetBrains/Toolbox/scripts:/home/malek/.cache/cargo-xwin" VSLANG="1033" "lld-link" "-flavor" "link" "/DEF:/tmp/rustcFrmAQJ/lib.def" "/NOLOGO" "/tmp/rustcFrmAQJ/symbols.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.15kv1cje7mhs942l.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.1jwrjgxpnaom5y7m.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.1ruexwppsuhzzsic.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.1yw3qqakl5tmdyfl.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.1zikuynjmnqgezkp.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.29mddud38is134rs.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.2gxvlqol1qvji9gb.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.2pr9n1dl5oc1j4ey.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.2r75yvuogwqofp5j.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.30wm4hkpv8uewrdc.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.372ievazwwaxt6yu.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.3f6xdlg0g73uquha.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.3oxp6x2hwokddnyd.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.42fqp6a2ujjtcbye.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.442z9ega2z3q0af0.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.4v788bd80byqmxnh.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.eb9y3fxeg320pq9.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.vagrbb8f7iiuw67.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.167flh38dohz33b0.rcgu.o" "/LIBPATH:/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps" "/LIBPATH:/home/malek/IdeaProjects/test-project/target/debug/deps" "/LIBPATH:/home/malek/.cache/cargo-xwin/xwin/crt/lib/x86_64" "/LIBPATH:/home/malek/.cache/cargo-xwin/xwin/sdk/lib/um/x86_64" "/LIBPATH:/home/malek/.cache/cargo-xwin/xwin/sdk/lib/ucrt/x86_64" "/LIBPATH:/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/build/stereokit-sys-fe51121b3b8b0ad3/out/lib" "/LIBPATH:/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/build/stereokit-sys-fe51121b3b8b0ad3/out/lib64" "/LIBPATH:/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/build/stereokit-sys-fe51121b3b8b0ad3/out" "/LIBPATH:/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/libstereokit-8b72e645573c46d7.rlib" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/libbitflags-ce9cf91ea312dedf.rlib" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/libthiserror-a76061409c31d039.rlib" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/libstereokit_sys-c987d49c9fcf03cd.rlib" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/libnum_enum-958f9d3b02aae723.rlib" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/libglam-291ae4fcabf779d3.rlib" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/libserde-a25734b0b49b5b33.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libstd-29fb9c73329fcd27.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libpanic_unwind-1f2e411ca628cd6a.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/librustc_demangle-4ee9a16c10dec862.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libstd_detect-cb508fe8539dcc15.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libhashbrown-a3b05fbe0520312d.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libminiz_oxide-f05cf6350dcd6a22.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libadler-b092cec796df4927.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/librustc_std_workspace_alloc-c8bf20bf49bad3b5.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libunwind-ec9e9e3723b4fe5e.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libcfg_if-56146bb647877fe7.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/liblibc-ab0d37bafe4ab3ae.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/liballoc-4e31fac262ef8330.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/librustc_std_workspace_core-69892fa511d5a698.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libcore-798bc7c2d986ac97.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libcompiler_builtins-8f90c56c12de841c.rlib" "windowsapp.lib" "user32.lib" "comdlg32.lib" "kernel32.lib" "advapi32.lib" "userenv.lib" "kernel32.lib" "ws2_32.lib" "bcrypt.lib" "libcmt.lib" "legacy_stdio_definitions.lib" "/NXCOMPAT" "/LIBPATH:/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib" "/OUT:/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.dll" "/OPT:REF,NOICF" "/DLL" "/IMPLIB:/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/debug/deps/test_project.dll.lib" "/DEBUG"
  = note: lld-link: error: could not open 'msvcrtd.lib': No such file or directory
          lld-link: error: could not open 'msvcprtd.lib': No such file or directory

error: could not compile `test-project` due to previous error
[malek@malek-box test-project]$  CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUSTFLAGS="-Lnative=/xwin/crt/lib/x86_64 -Lnative=/xwin/sdk/lib/um/x86_64 -Lnative=/xwin/sdk/lib/ucrt/x86_64" RC=x86_64-w64-mingw32-windres RUSTFLAGS="-C target-feature=+crt-static" cargo xwin build --target=x86_64-pc-windows-msvc --release
warning: output filename collision.
The bin target `test-project` in package `test-project v0.1.0 (/home/malek/IdeaProjects/test-project)` has the same output filename as the lib target `test-project` in package `test-project v0.1.0 (/home/malek/IdeaProjects/test-project)`.
Colliding filename is: /home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/test_project.pdb
The targets should have unique names.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
warning: output filename collision.
The bin target `test-project` in package `test-project v0.1.0 (/home/malek/IdeaProjects/test-project)` has the same output filename as the lib target `test-project` in package `test-project v0.1.0 (/home/malek/IdeaProjects/test-project)`.
Colliding filename is: /home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/test_project.pdb
The targets should have unique names.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
   Compiling test-project v0.1.0 (/home/malek/IdeaProjects/test-project)
error: linking with `lld-link` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/malek/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/opt/android-ndk:/opt/android-sdk/cmdline-tools/latest/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/malek/.local/share/JetBrains/Toolbox/scripts:/home/malek/.cache/cargo-xwin" VSLANG="1033" "lld-link" "-flavor" "link" "/DEF:/tmp/rustcESCKQK/lib.def" "/NOLOGO" "/tmp/rustcESCKQK/symbols.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/test_project.test_project.aa2a4a95-cgu.0.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/test_project.test_project.aa2a4a95-cgu.1.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/test_project.test_project.aa2a4a95-cgu.2.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/test_project.test_project.aa2a4a95-cgu.3.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/test_project.test_project.aa2a4a95-cgu.4.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/test_project.test_project.aa2a4a95-cgu.5.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/test_project.test_project.aa2a4a95-cgu.6.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/test_project.test_project.aa2a4a95-cgu.7.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/test_project.test_project.aa2a4a95-cgu.8.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/test_project.test_project.aa2a4a95-cgu.9.rcgu.o" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/test_project.1pb6k99ppmd69o5a.rcgu.o" "/LIBPATH:/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps" "/LIBPATH:/home/malek/IdeaProjects/test-project/target/release/deps" "/LIBPATH:/home/malek/.cache/cargo-xwin/xwin/crt/lib/x86_64" "/LIBPATH:/home/malek/.cache/cargo-xwin/xwin/sdk/lib/um/x86_64" "/LIBPATH:/home/malek/.cache/cargo-xwin/xwin/sdk/lib/ucrt/x86_64" "/LIBPATH:/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/build/stereokit-sys-441fa8d63d70bb69/out/lib" "/LIBPATH:/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/build/stereokit-sys-441fa8d63d70bb69/out/lib64" "/LIBPATH:/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/build/stereokit-sys-441fa8d63d70bb69/out" "/LIBPATH:/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/libstereokit-12d63f76abdf375a.rlib" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/libbitflags-162ccef7681bb45e.rlib" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/libthiserror-5e07301c304eb9e8.rlib" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/libstereokit_sys-219fd5c334ee8ce9.rlib" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/libnum_enum-6f5e11f016362629.rlib" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/libglam-76db3294768a20d0.rlib" "/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/libserde-48fc5349913c5d45.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libstd-29fb9c73329fcd27.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libpanic_unwind-1f2e411ca628cd6a.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/librustc_demangle-4ee9a16c10dec862.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libstd_detect-cb508fe8539dcc15.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libhashbrown-a3b05fbe0520312d.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libminiz_oxide-f05cf6350dcd6a22.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libadler-b092cec796df4927.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/librustc_std_workspace_alloc-c8bf20bf49bad3b5.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libunwind-ec9e9e3723b4fe5e.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libcfg_if-56146bb647877fe7.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/liblibc-ab0d37bafe4ab3ae.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/liballoc-4e31fac262ef8330.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/librustc_std_workspace_core-69892fa511d5a698.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libcore-798bc7c2d986ac97.rlib" "/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib/libcompiler_builtins-8f90c56c12de841c.rlib" "windowsapp.lib" "user32.lib" "comdlg32.lib" "kernel32.lib" "advapi32.lib" "userenv.lib" "kernel32.lib" "ws2_32.lib" "bcrypt.lib" "libcmt.lib" "legacy_stdio_definitions.lib" "/NXCOMPAT" "/LIBPATH:/home/malek/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-pc-windows-msvc/lib" "/OUT:/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/test_project.dll" "/OPT:REF,ICF" "/DLL" "/IMPLIB:/home/malek/IdeaProjects/test-project/target/x86_64-pc-windows-msvc/release/deps/test_project.dll.lib" "/DEBUG"
  = note: lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(stereokit.cpp.obj): locally defined symbol imported: abort (defined in libucrt.lib(abort.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(model.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(font.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(mesh.cpp.obj): locally defined symbol imported: sqrtf (defined in libucrt.lib(sqrtf.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(mesh.cpp.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(sprite.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(sk_math.cpp.obj): locally defined symbol imported: sqrtf (defined in libucrt.lib(sqrtf.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(intersect.cpp.obj): locally defined symbol imported: sqrtf (defined in libucrt.lib(sqrtf.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(spherical_harmonics.cpp.obj): locally defined symbol imported: sqrtf (defined in libucrt.lib(sqrtf.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(stereokit_ui.cpp.obj): locally defined symbol imported: sqrtf (defined in libucrt.lib(sqrtf.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(texture.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(texture.cpp.obj): locally defined symbol imported: sqrtf (defined in libucrt.lib(sqrtf.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(tinycthread.cpp.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(tinycthread.cpp.obj): locally defined symbol imported: malloc (defined in libucrt.lib(malloc.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(log.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(log.cpp.obj): locally defined symbol imported: __acrt_iob_func (defined in libucrt.lib(_file.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(log.cpp.obj): locally defined symbol imported: __stdio_common_vfprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj): locally defined symbol imported: fclose (defined in libucrt.lib(fclose.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj): locally defined symbol imported: malloc (defined in libucrt.lib(malloc.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj): locally defined symbol imported: fwrite (defined in libucrt.lib(fwrite.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf_s (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(system.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(assets.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(assets.cpp.obj): locally defined symbol imported: abort (defined in libucrt.lib(abort.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(audio.cpp.obj): locally defined symbol imported: wcscpy_s (defined in libucrt.lib(wcscpy_s.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(audio.cpp.obj): locally defined symbol imported: sqrtf (defined in libucrt.lib(sqrtf.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(sprite_drawer.cpp.obj): locally defined symbol imported: sqrtf (defined in libucrt.lib(sqrtf.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(line_drawer.cpp.obj): locally defined symbol imported: sqrtf (defined in libucrt.lib(sqrtf.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(sk_memory.cpp.obj): locally defined symbol imported: malloc (defined in libucrt.lib(malloc.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(sk_memory.cpp.obj): locally defined symbol imported: __acrt_iob_func (defined in libucrt.lib(_file.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(sk_memory.cpp.obj): locally defined symbol imported: abort (defined in libucrt.lib(abort.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(sk_memory.cpp.obj): locally defined symbol imported: calloc (defined in libucrt.lib(calloc.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(sk_memory.cpp.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(platform_utils.cpp.obj): locally defined symbol imported: fclose (defined in libucrt.lib(fclose.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(platform_utils.cpp.obj): locally defined symbol imported: fwrite (defined in libucrt.lib(fwrite.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(platform_utils.cpp.obj): locally defined symbol imported: wcslen (defined in libucrt.lib(wcslen.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(platform_utils.cpp.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(stref.cpp.obj): locally defined symbol imported: tolower (defined in libucrt.lib(tolower_toupper.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(stref.cpp.obj): locally defined symbol imported: atoi (defined in libucrt.lib(atox.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(model_gltf.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(model_gltf.cpp.obj): locally defined symbol imported: strncmp (defined in libucrt.lib(strncmp.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(model_obj.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(model_stl.cpp.obj): locally defined symbol imported: sqrtf (defined in libucrt.lib(sqrtf.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(model_stl.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(model_ply.cpp.obj): locally defined symbol imported: atoi (defined in libucrt.lib(atox.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(model_ply.cpp.obj): locally defined symbol imported: malloc (defined in libucrt.lib(malloc.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(model_ply.cpp.obj): locally defined symbol imported: atol (defined in libucrt.lib(atox.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(model_ply.cpp.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(model_ply.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(sk_gpu.cpp.obj): locally defined symbol imported: malloc (defined in libucrt.lib(malloc.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(sk_gpu.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(sk_gpu.cpp.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(sk_gpu.cpp.obj): locally defined symbol imported: fclose (defined in libucrt.lib(fclose.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(bvh.cpp.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(miniaudio.cpp.obj): locally defined symbol imported: wcslen (defined in libucrt.lib(wcslen.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(miniaudio.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(miniaudio.cpp.obj): locally defined symbol imported: fclose (defined in libucrt.lib(fclose.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(miniaudio.cpp.obj): locally defined symbol imported: _wcsicmp (defined in libucrt.lib(wcsicmp.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(miniaudio.cpp.obj): locally defined symbol imported: fwrite (defined in libucrt.lib(fwrite.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(miniaudio.cpp.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(miniaudio.cpp.obj): locally defined symbol imported: malloc (defined in libucrt.lib(malloc.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(miniaudio.cpp.obj): locally defined symbol imported: wcscmp (defined in libucrt.lib(wcscmp.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(input_hand.cpp.obj): locally defined symbol imported: sqrtf (defined in libucrt.lib(sqrtf.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(stb_image.cpp.obj): locally defined symbol imported: strtol (defined in libucrt.lib(strtox.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(stb_image.cpp.obj): locally defined symbol imported: strncmp (defined in libucrt.lib(strncmp.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(qoi.cpp.obj): locally defined symbol imported: malloc (defined in libucrt.lib(malloc.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(qoi.cpp.obj): locally defined symbol imported: fwrite (defined in libucrt.lib(fwrite.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(qoi.cpp.obj): locally defined symbol imported: fclose (defined in libucrt.lib(fclose.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(qoi.cpp.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(flatscreen_input.cpp.obj): locally defined symbol imported: sqrtf (defined in libucrt.lib(sqrtf.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(openxr.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(isac_spatial_sound.cpp.obj): locally defined symbol imported: terminate (defined in libucrt.lib(terminate.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(isac_spatial_sound.cpp.obj): locally defined symbol imported: sqrtf (defined in libucrt.lib(sqrtf.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(isac_spatial_sound.cpp.obj): locally defined symbol imported: iswspace (defined in libucrt.lib(_wctype.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(isac_spatial_sound.cpp.obj): locally defined symbol imported: _errno (defined in libucrt.lib(errno.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(isac_spatial_sound.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(isac_spatial_sound.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo_noreturn (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(openxr_view.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(file_picker.cpp.obj): locally defined symbol imported: qsort (defined in libucrt.lib(qsort.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(file_picker.cpp.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(file_picker.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(cgltf.cpp.obj): locally defined symbol imported: fclose (defined in libucrt.lib(fclose.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(cgltf.cpp.obj): locally defined symbol imported: strncmp (defined in libucrt.lib(strncmp.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(cgltf.cpp.obj): locally defined symbol imported: atoi (defined in libucrt.lib(atox.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(hand_oxr_articulated.cpp.obj): locally defined symbol imported: sqrtf (defined in libucrt.lib(sqrtf.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(hand_oxr_articulated.cpp.obj): locally defined symbol imported: qsort (defined in libucrt.lib(qsort.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(xr_generated_loader.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo_noreturn (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(loader_core.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo_noreturn (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(loader_instance.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo_noreturn (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(loader_logger.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo_noreturn (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(api_layer_interface.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo_noreturn (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(api_layer_interface.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(runtime_interface.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo_noreturn (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(runtime_interface.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(loader_logger_recorders.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo_noreturn (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(object_info.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo_noreturn (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(manifest_file.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo_noreturn (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(manifest_file.cpp.obj): locally defined symbol imported: atoi (defined in libucrt.lib(atox.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(manifest_file.cpp.obj): locally defined symbol imported: fclose (defined in libucrt.lib(fclose.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(manifest_file.cpp.obj): locally defined symbol imported: _lock_file (defined in libucrt.lib(_file.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(manifest_file.cpp.obj): locally defined symbol imported: _unlock_file (defined in libucrt.lib(_file.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(manifest_file.cpp.obj): locally defined symbol imported: fwrite (defined in libucrt.lib(fwrite.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(manifest_file.cpp.obj): locally defined symbol imported: fputc (defined in libucrt.lib(fputc.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(manifest_file.cpp.obj): locally defined symbol imported: _get_stream_buffer_pointers (defined in libucrt.lib(_file.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(manifest_file.cpp.obj): locally defined symbol imported: fflush (defined in libucrt.lib(fflush.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(json_value.cpp.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(json_value.cpp.obj): locally defined symbol imported: malloc (defined in libucrt.lib(malloc.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(json_value.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo_noreturn (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(json_reader.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo_noreturn (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(json_reader.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(json_reader.cpp.obj): locally defined symbol imported: strncmp (defined in libucrt.lib(strncmp.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(filesystem_utils.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo_noreturn (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(filesystem_utils.cpp.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(filesystem_utils.cpp.obj): locally defined symbol imported: calloc (defined in libucrt.lib(calloc.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(json_writer.cpp.obj): locally defined symbol imported: _invalid_parameter_noinfo_noreturn (defined in libucrt.lib(invalid_parameter.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(json_writer.cpp.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(json_writer.cpp.obj): locally defined symbol imported: wcslen (defined in libucrt.lib(wcslen.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(json_writer.cpp.obj): locally defined symbol imported: calloc (defined in libucrt.lib(calloc.obj)) [LNK4217]
          lld-link: warning: libstereokit_sys-219fd5c334ee8ce9.rlib(json_writer.cpp.obj): locally defined symbol imported: __stdio_common_vsprintf (defined in libucrt.lib(output.obj)) [LNK4217]
          lld-link: warning: msvcprt.lib(filesystem.obj): locally defined symbol imported: ___lc_codepage_func (defined in libucrt.lib(initctype.obj)) [LNK4217]
          lld-link: warning: msvcprt.lib(filesystem.obj): locally defined symbol imported: terminate (defined in libucrt.lib(terminate.obj)) [LNK4217]
          lld-link: warning: msvcprt.lib(filesystem.obj): locally defined symbol imported: free (defined in libucrt.lib(free.obj)) [LNK4217]
          lld-link: warning: msvcprt.lib(filesystem.obj): locally defined symbol imported: malloc (defined in libucrt.lib(malloc.obj)) [LNK4217]
          lld-link: error: undefined symbol: __declspec(dllimport) fmodf
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(model.cpp.obj):(model_anim_active_time)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(model.cpp.obj):(model_anim_active_completion)

          lld-link: error: undefined symbol: __declspec(dllimport) cosf
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(mesh.cpp.obj):(mesh_gen_circle)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(mesh.cpp.obj):(mesh_gen_cylinder)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(mesh.cpp.obj):(mesh_gen_cone)
          >>> referenced 9 more times

          lld-link: error: undefined symbol: __declspec(dllimport) sinf
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(mesh.cpp.obj):(mesh_gen_circle)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(mesh.cpp.obj):(mesh_gen_cylinder)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(mesh.cpp.obj):(mesh_gen_cone)
          >>> referenced 13 more times

          lld-link: error: undefined symbol: __declspec(dllimport) log2
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(material.cpp.obj):(void __cdecl sk::material_check_tex_changes(struct sk::_material_t *))

          lld-link: error: undefined symbol: __declspec(dllimport) powf
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(color.cpp.obj):(color_lab)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(color.cpp.obj):(color_lab)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(color.cpp.obj):(color_lab)
          >>> referenced 53 more times

          lld-link: error: undefined symbol: __declspec(dllimport) asinf
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(sk_math.cpp.obj):(matrix_to_angles)

          lld-link: error: undefined symbol: __declspec(dllimport) atan2f
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(sk_math.cpp.obj):(matrix_to_angles)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(sk_math.cpp.obj):(matrix_to_angles)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(hand_oxr_articulated.cpp.obj):(void __cdecl sk::hand_oxra_update_system_meshes(void))

          lld-link: error: undefined symbol: __declspec(dllimport) logf
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(texture.cpp.obj):(tex_gen_cubemap)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(texture.cpp.obj):(tex_gen_cubemap_sh)

          lld-link: error: undefined symbol: __declspec(dllimport) _timespec64_get
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(tinycthread.cpp.obj):(mtx_timedlock)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(tinycthread.cpp.obj):(cnd_timedwait)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(tinycthread.cpp.obj):(thrd_sleep)
          >>> referenced 1 more times

          lld-link: error: undefined symbol: __declspec(dllimport) fopen_s
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj):(stbi_write_bmp)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj):(stbi_write_tga)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj):(stbi_write_hdr)
          >>> referenced 11 more times

          lld-link: error: undefined symbol: __declspec(dllimport) frexp
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj):(int __cdecl stbi_write_hdr_core(struct stbi__write_context *, int, int, int, float *))
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj):(int __cdecl stbi_write_hdr_core(struct stbi__write_context *, int, int, int, float *))

          lld-link: error: undefined symbol: __declspec(dllimport) realloc
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj):(stbi_zlib_compress)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj):(stbi_zlib_compress)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj):(stbi_zlib_compress)
          >>> referenced 18 more times

          lld-link: error: undefined symbol: __declspec(dllimport) log2f
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj):(void __cdecl sk::render_draw_queue(union sk::matrix const *, union sk::matrix const *, enum sk::render_layer_, int))
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(sk_gpu.cpp.obj):(void __cdecl skg_tex_set_contents_arr(struct skg_tex_t *, void const **, int, int, int, int))
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(sk_gpu.cpp.obj):(unsigned int __cdecl skg_mip_count(int, int))
          >>> referenced 1 more times

          lld-link: error: undefined symbol: _m_prefetchw
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(render.cpp.obj):(void __cdecl sk::radix_sort7(struct sk::render_item_t *, unsigned __int64))

          lld-link: error: undefined symbol: __declspec(dllimport) _wfopen
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(platform_utils.cpp.obj):(platform_read_file)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(platform_utils.cpp.obj):(platform_read_file)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(platform_utils.cpp.obj):(int __cdecl sk::_platform_write_file(char const *, void *, unsigned __int64, int))

          lld-link: error: undefined symbol: __declspec(dllimport) fseek
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(platform_utils.cpp.obj):(platform_read_file)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(sk_gpu.cpp.obj):(bool __cdecl skg_read_file(char const *, void **, unsigned __int64 *))
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(miniaudio.cpp.obj):(unsigned int __cdecl drmp3__on_seek_stdio(void *, int, enum drmp3_seek_origin))
          >>> referenced 5 more times

          lld-link: error: undefined symbol: __declspec(dllimport) ftell
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(platform_utils.cpp.obj):(platform_read_file)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(sk_gpu.cpp.obj):(bool __cdecl skg_read_file(char const *, void **, unsigned __int64 *))
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(qoi.cpp.obj):(qoi_read)
          >>> referenced 1 more times

          lld-link: error: undefined symbol: __declspec(dllimport) fread
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(platform_utils.cpp.obj):(platform_read_file)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(sk_gpu.cpp.obj):(bool __cdecl skg_read_file(char const *, void **, unsigned __int64 *))
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(miniaudio.cpp.obj):(unsigned __int64 __cdecl drwav__on_read_stdio(void *, void *, unsigned __int64))
          >>> referenced 5 more times

          lld-link: error: undefined symbol: __declspec(dllimport) _wsplitpath
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(platform_utils.cpp.obj):(platform_read_file)
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(platform_utils.cpp.obj):(platform_read_file)

          lld-link: error: undefined symbol: __declspec(dllimport) wcscpy
          >>> referenced by libstereokit_sys-219fd5c334ee8ce9.rlib(platform_utils.cpp.obj):(platform_read_file)

          lld-link: error: too many errors emitted, stopping now (use /errorlimit:0 to see all errors)

error: could not compile `test-project` due to previous error
Jake-Shadle commented 1 year ago

You're trying to cross compile xwin itself first, that won't work unless you have the libraries...which you get via xwin. You just need to build xwin for your local host first. I'm guessing the second build fails simply because you don't have the libraries as well.

MalekiRe commented 1 year ago

wait so how do I compile xwin for my local host? I'm a bit confused?

MalekiRe commented 1 year ago

Fixed, issue was I needed to unlink the static runtime, and needed to add a link to ucrt