hexagon logo

Error while compiling subroutine

Hello, I'm trying to compile a subroutine for ADAMS and I keep getting the following error message.
"reqsub.obj : error LNK2019: unresolved external symbol __imp_c_errmes referenced in function Reqsub
reqsub.obj : error LNK2019: unresolved external symbol __imp_c_sysfnc referenced in function Reqsub
my_file.dll : fatal error LNK1120: 2 unresolved external".
 
As practice I’m trying to compile existing subroutine “reqsub.c”. I copy that along with the "slv_c_utils.h" from "solver/c_usersubs" to my current workspace. After that I open the command prompt, set the current working directory to be same as my workspace and select the following options:
adams2016 => aview => cr-user
 
Next, I go through the options and select "n" for the debugging option, I state the c file "reqsub.c" and then I state the desired dll file name "my_subroutine.dll". However I keep getting the above error message.
 
Any help would be greatly appreciated.
 
Versions: ADAMS 2016, SDK 7.1, Visual Studio 2013, Windows 7