Winelib Program with DLL problem

Dmitry Timoshkov dmitry at baikal.ru
Fri Dec 26 08:09:19 CST 2003


"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.

> I would hardly call the '@' decoration a bug, it is the way it is done in 
> windows.  It is spelled out in the documentation that way.

That's a misunderstanding. Symbols get decorated only in object files,
linker strips them out and a final PE binary should not have that crap.
All standard windows dlls have no '@' character in the exported APIs.

However as you have discovered MS linker does not always strip the stdcall
decorations. That does not affect the things under Windows if both .exe
and .dll were created by the same (buggy) tool chain. But in the case of
mixing build environments you have a lot of troubles.

-- 
Dmitry.





More information about the wine-devel mailing list