This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Linking against .lib libraries


Hi Earnie, you wrote:

: Basically you need to create a somelib.def file from the `nm
: --defined-only --demangle somelib.lib | grep ' [DCT] ' > somelib.def'.
:  Then add `EXPORTS' as the first line to the file.  Then use dlltool
: to create the libsomelib.a file.

To avoid manual editing, try (untested):
 nm --defined-only --demangle somelib.lib|\
 (echo EXPORTS;grep ' [DCT] ')>somelib.def


Bye, Heribert (dahms@ifk20.mach.uni-karlsruhe.de)
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]