While building testmon.exe, the following condition caused the link error to be reported:
You need to include smcapi32.lib as one of the libraries in which to link. It is located by default in C:\SYBASE\MONCLT\LIB.