View previous topic :: View next topic |
Author |
Message |
JugoslavDujic
Joined: 10 Nov 2005 Posts: 7
|
Posted: Wed Nov 23, 2005 7:34 am Post subject: Winspool.lib (porting woe #5) |
|
|
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 _________________ %2D%2D%0D%0AJugoslav |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Fri Nov 25, 2005 1:14 pm Post subject: Winspool.lib (porting woe #5) |
|
|
Jugoslav
From memory, you will need header information for compiling (as in win32api.ins etc). /IMPORT_LIB is not relevant. No special compiler switches are required.
When linking, try presenting the the name of the DLL (nothing before it) on the SLINK command line.
In a script or interactive mode just use lo <DLLname>.
If this doesn't work then let me know. Alternatively the SLINK documentation is very comprehensive.
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|