webui icon indicating copy to clipboard operation
webui copied to clipboard

MinGW-W64-i686 compile 32bit dll file failure

Open zelsazgh opened this issue 1 year ago • 2 comments

I try to use Mingw-W64-i686 compile webui 32bit dll file encounter failure. mingw32-make display:

"Build WebUI library (gcc release static)..."
"Build WebUI library (gcc release dynamic)..."
D:/w64devkit/bin/ld.exe: webui.o:webui.c:(.text+0x32bd): undefined reference to `InitializeConditionVariable'
D:/w64devkit/bin/ld.exe: webui.o:webui.c:(.text+0x32ec): undefined reference to `SleepConditionVariableCS'
D:/w64devkit/bin/ld.exe: webui.o:webui.c:(.text+0x330d): undefined reference to `WakeConditionVariable'
collect2.exe: error: ld returned 1 exit status
make: *** [GNUmakefile:121: --release] Error 1

how to slove it?

zelsazgh avatar Jan 04 '24 07:01 zelsazgh

This issue is related to a missing mutex lib. In Windows, mutexes and condition variables are typically part of the standard Windows API, which is available through Kernel32.lib and Synchronization.lib. Which OS version you are using?

hassandraga avatar Jan 04 '24 16:01 hassandraga

I am using Win 11,My Compiler Lib path have kerenl32.lib and synchronization.lib.

zelsazgh avatar Jan 07 '24 03:01 zelsazgh