The /LIBPATH linker option specifies a directory in which to search for libraries. The second command appears to be using it to specify the library file itself.
Either delete the /LIBPATH:
option prefix from the command line, or split the library name from the directory search specification - /LIBPATH:"C:\Temp\lib" ..... test.lib
.