I removed the cr command and used lib libmylib.lib mylib.obj in the cmd promot:
Below is the error msg:
C:\Perl\bin\MyTest2\mylib>lib libmylib.lib mylib.obj
Microsoft (R) Library Manager Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
LIB : fatal error LNK1104: cannot open file 'libmylib.lib'