Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MinGW-W64-i686 compile 32bit dll file failure #295

Open
zelsazgh opened this issue Jan 4, 2024 · 2 comments
Open

MinGW-W64-i686 compile 32bit dll file failure #295

zelsazgh opened this issue Jan 4, 2024 · 2 comments

Comments

@zelsazgh
Copy link

zelsazgh commented Jan 4, 2024

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?

@hassandraga
Copy link
Member

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?

@zelsazgh
Copy link
Author

zelsazgh commented Jan 7, 2024

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants