Hola, With the recent import lib changes on almost everything I try and build I am getting these errors. When using the win32api package from mingw prior to this patch these functions were exported.
Thanks Steven
brsfolder.o(.text+0xfe0):brsfolder.c: undefined reference to `HeapAlloc@12' brsfolder.o(.text+0x1037):brsfolder.c: undefined reference to `HeapAlloc@12' brsfolder.o(.text+0x10d2):brsfolder.c: undefined reference to `HeapFree@12' brsfolder.o(.text+0x10e8):brsfolder.c: undefined reference to `HeapFree@12' changenotify.o(.text+0x12f):changenotify.c: undefined reference to `EnterCritica lSection@4' changenotify.o(.text+0x1f4):changenotify.c: undefined reference to `LeaveCritica lSection@4' changenotify.o(.text+0x1fe):changenotify.c: undefined reference to `DeleteCritic alSection@4' changenotify.o(.text+0x232):changenotify.c: undefined reference to `EnterCritica lSection@4' changenotify.o(.text+0x2a9):changenotify.c: undefined reference to `LeaveCritica lSection@4' changenotify.o(.text+0x313):changenotify.c: undefined reference to `EnterCritica lSection@4' changenotify.o(.text+0x431):changenotify.c: undefined reference to `LeaveCritica lSection@4'
"Steven Edwards" Steven_Ed4153@yahoo.com wrote:
With the recent import lib changes on almost everything I try and build I am getting these errors. When using the win32api package from mingw prior to this patch these functions were exported.
Thanks Steven
brsfolder.o(.text+0xfe0):brsfolder.c: undefined reference to `HeapAlloc@12'
[skipped]
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.
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
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.
I apply'd your patch and tested in my latest build enviroment and I still get the same problems. Is there another way around this bug? If not I will get on the binutils guys double time.
Thanks Steven
"Steven Edwards" Steven_Ed4153@yahoo.com wrote:
I apply'd your patch and tested in my latest build enviroment and I still get the same problems.
As were said, my patch solves completely another problem.
Steven Edwards Steven_Ed4153@yahoo.com writes:
I apply'd your patch and tested in my latest build enviroment and I still get the same problems. Is there another way around this bug? If not I will get on the binutils guys double time.
This should be fixed by the latest winebuild changes.