On Fri, 26 Dec 2003, Dmitry Timoshkov wrote:

> "Kevin Atkinson" <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]'
  examples.o(.text+0x41):examples.c: undefined reference to [EMAIL PROTECTED]'

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 [EMAIL PROTECTED]'
  examples.o(.text+0x43):examples.c: undefined reference to [EMAIL PROTECTED]'

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


Reply via email to