The final error message is: = note: LINK : fatal error LNK1181: cannot open input file 'matio.lib'.
I guess this is likely related to a windows percularity: target\debug\build\matio-rs-sys-*\out\build\Debug\libmatio.lib does exist, but the corresponding build.rs refers to matio. While linkers on Linux add prefixes like lib and suffixes like .a, windows' link.exe does not do automatically add them. Hence the linker looks for matio.lib, but the actual file is called libmatio.lib.
The final error message is:
= note: LINK : fatal error LNK1181: cannot open input file 'matio.lib'
.I guess this is likely related to a windows percularity:
target\debug\build\matio-rs-sys-*\out\build\Debug\libmatio.lib
does exist, but the correspondingbuild.rs
refers tomatio
. While linkers on Linux add prefixes likelib
and suffixes like.a
, windows'link.exe
does not do automatically add them. Hence the linker looks formatio.lib
, but the actual file is calledlibmatio.lib
.https://github.com/rconan/matio-rs/blob/e58fffe3d29be798eed463096791b64f6b592642/sys/build.rs#L16