rconan / matio-rs

Rust MATIO bindings
MIT License
0 stars 3 forks source link

compilation under windows fails with `1.3.2` #7

Open EmJee13 opened 3 months ago

EmJee13 commented 3 months ago

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.

https://github.com/rconan/matio-rs/blob/e58fffe3d29be798eed463096791b64f6b592642/sys/build.rs#L16