in a MS VS Native project, right clicking in project->properties. You should see this text-box 'Link with these libs"... Just add these the full pathname of winspool.lib ( delivered in MS SDK )...
from a VC command prompt, it would have to be: cbllink [-d] XXX.cbl winspool.lib ( assuming it's an the current DIR or LIB envt variables pointing on DIR where winspool.lib is located ) or cbllink [-d] XXX.cbl 'winspool.lib full path' ...
Regards
Yvon