Thursday, November 15, 2007

How do I create the libwinscard.a import library suitable for linking with native Windows WINSCARD.DLL

How do I create the libwinscard.a import library suitable for linking with native Windows WINSCARD.DLL ?

First, create the .def file from the DLL itself:

#> /usr/bin/impgen WINSCARD.DLL > winscard.def


Then, create the .a import library:

#> /usr/bin/dlltool --as=as \
#> --dllname WINSCARD.DLL --def winscard.def \
#> --kill-at --output-lib libwinscard.a


Now you can place libwinscard.a into a standard library path and use -lwinscard to link using it. Note that this file is only required to be found by gcc when linking. It will not be required when executing the program.

Proxmox installation display out of range

Reference:  https://forum.proxmox.com/threads/proxmox-ve-screen-out-of-range.131297/