Winelib Program with DLL problem

Kevin Atkinson kevina at gnu.org
Fri Dec 26 09:51:42 CST 2003


On Fri, 26 Dec 2003, Dmitry Timoshkov wrote:

> "Kevin Atkinson" <kevina at gnu.org> wrote:
> 
> > If the names are not decorated in that fashion mingw has a problem linking 
> > with it.  When linked the linker is looking for the names with the 
> > '@' decoration.
> 
> ... in the object files. That's a way compilers treat __stdcall keyword
> in the windows world.

But also when I link with the DLL.  When I attempt to link I get this:

  gcc -O -Wall -shared examples.o avisynth_c.lib -o examples.dll
  examples.o(.text+0x33):examples.c: undefined reference to `avs_new_c_filter at 20'
  examples.o(.text+0x41):examples.c: undefined reference to `avs_set_to_clip at 8'

With the __declspec(dllimport):

  gcc -O -Wall -shared examples.o avisynth_c.lib -o examples.dll
  examples.o(.text+0x34):examples.c: undefined reference to `_imp__avs_new_c_filter at 20'
  examples.o(.text+0x43):examples.c: undefined reference to `_imp__avs_set_to_clip at 8'

So without special treatment mingw gcc seams to also expect the @ 
decoration.

I don't care if you consider it a "bug".  I am just reporting how it is 
done.  And the fact that it is causing me a lot of grief.

-- 
http://kevin.atkinson.dhs.org




More information about the wine-devel mailing list