The libtype=RSM was used on a Windows platform that does not support RSM.
The function fails.
Use another library type to define the library.