#Cannot build a library that depends on dynamic symbols on Windows

2 messages · Page 1 of 1 (latest)

slim dagger
#

I am working on a https://github.com/noib3/nvim-oxi lib that basically provides typings for neovim api. Neovim provides functions that must be linked on runtime. Compilation on Linux works properly, but on Windows it fails at linkage time with LNK2019 error. Any solution to tell linker/rustc that symbols will be provided later?

https://github.com/noib3/nvim-oxi/runs/6800795042?check_suite_focus=true - error log

GitHub

:link: Rust bindings to all things Neovim. Contribute to noib3/nvim-oxi development by creating an account on GitHub.

slim dagger
#

welp, ive fixed this by passing /FORCE:UNRESOLVED flag to linker, but there should be another way to fix it, i believe