After compiling the Windows Encyclopedia API apidemo.c, the link fails with LINK : fatal error LNK1181: cannot open input file 'encyapiw.lib'.
The following instructions are documented in the Gen documentation in the Additional Information link.
set INCLUDE=%Genxx%CSE\include;%INCLUDE%
set LIB=%Genxx%CSE\lib;%LIB%
cl -c -Gy -Zp1 -W4 -MD -EHsc -nologo apidemo.c
link @apidemo.txt
In testing, it was noticed that an additional path was needed for the LIB. set LIB=%Gen86%CSE\lib;%Gen86%Gen;%LIB%
Using Gen 8.6, so for the set statements above, use %Gen86% instead of %Genxx%.
In the folder %gen86%\gen\samples\apidemo, there are two link files, apidemow.txt and apidem2w.txt. Each file contains outdated .lib references. The corrected link files are in the attached "APIDEMO 8.6 updates.zip".