Check that the makefile assigns simply lib to AR. I suspect it is assigning lib cr
I don't know how this error is arising (someone else might), but I think the lib command will succeed if the cr is removed. You could check by cd'ing to the folder that contains mylib.obj and running lib libmylib.lib mylib.obj Then cd back to the top level folder and run nmake again.