webui-dev / webui

Use any web browser or WebView as GUI, with your preferred language in the backend and HTML5 in the frontend, all in a lightweight portable lib.
https://webui.me
MIT License
2.36k stars 144 forks source link

build error in windows using mingw32 #331

Open jacklowtaken opened 4 months ago

jacklowtaken commented 4 months ago

while I build example at webui\examples\C\minimal, I meet an error:

E:\tool\ui\webui\examples\C\minimal>mingw32-make "Build C Example (gcc release static)..." D:\Users\yl3410\AppData\Local\Temp\cc8Ga2nq.o:main.c:(.text.startup+0xf): undefined reference to webui_new_window' D:\Users\yl3410\AppData\Local\Temp\cc8Ga2nq.o:main.c:(.text.startup+0x1f): undefined reference towebui_show' D:\Users\yl3410\AppData\Local\Temp\cc8Ga2nq.o:main.c:(.text.startup+0x24): undefined reference to `webui_wait' collect2.exe: error: ld returned 1 exit status GNUmakefile:99: recipe for target 'release' failed mingw32-make: *** [release] Error 1

AlbertShown commented 4 months ago

You need to build first the library before building the examples.

cd E:\tool\ui\webui
mingw32-make

cd E:\tool\ui\webui\examples\C\minimal
mingw32-make
jacklowtaken commented 4 months ago

fixed, should use mingw64