This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: dlltool not creating a proper import library
- To: abegel at eecs dot berkeley dot edu
- Subject: Re: dlltool not creating a proper import library
- From: DJ Delorie <dj at delorie dot com>
- Date: Mon, 4 Jun 2001 19:39:19 -0400
- CC: binutils at sources dot redhat dot com, abegel at cs dot berkeley dot edu
- References: <B7D7A2ED64049746BBCDFB0DA028CC5404A54A@ups.millennium.berkeley.edu>
It sounds to me like you're not using the official versions
of the sources, because:
1. gcc doesn't have "nm_" anywhere in it's backend sources.
2. Nothing in the linker does either.
3. I can't find the string "auto-import" in the sources anywhere.
So, unless you can reproduce this with the official tools, nobody here
is going to be able to help you much. Have you tried reporting this
to the mingw list?
> However, when I use dlltool to make an import library from a .def file,
> I only get two symbols for each exported symbol: _bar and __imp_bar.
This is normal. For data symbols, you only get the _imp_ one. And,
you'd get _imp__bar, not __imp_bar (the latter is obsolete).