Skip to content

Conversation

@singinwhale
Copy link

I was running into some issues due to linking statically with a different library (Assimp).
Specifically this error

error: linking with `link.exe` failed: exit code: 1169
  |
  = note: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.43.34808\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\Manuel\\AppData\\Local\\Temp\\rustcQVjgDL\\symbols.o" "<257 object files omitted>" ...
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: librussimp_sys-cddc1b1b36611906.rlib(Assimp.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in libbasis_universal_sys-11b0d89a5f73da7e.rlib(18c57188dd651d14-encoding_wrapper.o)␍
  <further similar errors omitted>

To fix thisI introduced a new feature for linking statically with the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant