Just tried to build wxwidgets recent git master branch and it failed to build DLL using Clang 5.0.1.
How are you trying? I can't find any instructions about how to use clang to build wxwidgets on windows?
I am building under MSys2 (an fork of Cygwin) using configure/make.
It built an static wxWidgets without build errors; did not try running the sample to see if library works.
Followed an modified version of the docs/msw/msys2-msw.txt that I wrote and submitted to wxWidgets team a while ago.
CC=clang CXX=clang++ \
../configure --with-msw \
--enable-shared \
--disable-precomp-headers \
Tim S.
You might try this command and see if it works for you.
mingw32-make -f makefile.gcc CC=clang CXX=clang++ MONOLITHIC=0 SHARED=0 UNICODE=1 BUILD=debug
Tim S.