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.

Centos 7 reset root/ any user lost password / lockout due to cant remember password

1. Need to be in front of the terminal. (Physically if not vm). 2. Reboot the server 3. Press 'e' in the GRUB2 boot screen. 3. bunch...