OK, the port finally compiles and now I'm resolving linker problems.
I'm using few APIs from Winspool.lib (OpenPrinterA, ClosePrinter, DocumentPropertiesA) but I can't find the way to make the linker happy. Winspool.lib is import library for (AFAIK) Winspool.drv. I'm building Win32 dll from VS.NET environment, and on adding
-addobj:Winspool.lib
Linker complains that it cannot find 'Winspool.lib'. OTOH, If I add:
-addobj:'C:\Program files...\Winspool.lib'
it complains about
*** Corrupt coff object: WINSPOOL.DRV
I'm having similar issues with Ole32.lib (CoInitialize, CoTaskMemFree). /IMPORT_LIB compiler switch doesn't help either.
-- Jugoslav