Dmitry Timoshkov wrote:
It's an ld bug. Currently ld could not use forwarded references in import libraries. I reported that bug almost 1.5 years ago in the binutils mailing list, but it seems nobody interested in fixing it.
Moreover, in order to eliminate decorated (@xx) names in the dll export table you need to apply the attached patch and use latest binutils. But unfortunately even it doesn't resolve many other issues with dll linking.
I remember we discussed this a while back. Thanks for the patch, I will give it a shot tonight as I just upgraded my gcc, mingw, msys and binutils to the latest revs.
Thanks Steven