How do I create the libwinscard.a import library suitable for linking with native Windows WINSCARD.DLL
11.07.06 (3:15 pm) [edit]
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:
& nbsp; $ /usr/bin/impgen WINSCARD.DLL > winscard.def
Then, create the .a import library:
& nbsp; $ /usr/bin/dlltool --as=as \
& nbsp; &n bsp; --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.
First, create the .def file from the DLL itself:
& nbsp; $ /usr/bin/impgen WINSCARD.DLL > winscard.def
Then, create the .a import library:
& nbsp; $ /usr/bin/dlltool --as=as \
& nbsp; &n bsp; --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.