My computer can compile and link usermat.f files in ANSYS APDL but in ANSYS Workbench that usermat file cannot be linked properly by UPF extension. It can compile the usermat file but cannot link it. 

The link error in solver directory is error LNK2001 and fatal error LNK1120. 

Do you guys have any suggestion to fix this issue?