webui-dev / webui

Use any web browser or WebView as GUI, with your preferred language in the backend and modern web technologies in the frontend, all in a lightweight portable library.
https://webui.me
MIT License
2.9k stars 164 forks source link

Windows TCC examples don't build #198

Closed ttytm closed 1 year ago

ttytm commented 1 year ago

E.g. trying to compile the minimal C example:

The errors are similar when trying to use tcc with V. If they can be fixed, it might help to get tcc running over there.


Edit: Checking out earlier stable tags like 2.3.0, the TCC example doesn't build as well.

With 2.3.0 we run into less errors

tcc: error: undefined symbol 'opendir'
tcc: error: undefined symbol 'closedir'
tcc: error: undefined symbol 'IsWow64Process'

And checking over at civetweb it's related to what author is stating here: https://github.com/civetweb/civetweb/issues/1158#issuecomment-1546845523

Maybe we should remove TCC from the supported list and the examples until it works?

hassandraga commented 1 year ago

All those issues are related to missing header files. I suggest removing the TCC support from WebUI. At the end of the day, any user can add headers files to TCC and compile the lib and examples.