seems, like the compiler detection may be altered a bit for not-yet-ready compilers: https://github.com/wxWidgets/wxWidgets/blob/master/src/common/string.cpp#L1561
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
this is my test compile:
git clone --recurse-submodules https://github.com/wxWidgets/wxWidgets
cd wxWidgets
# then compile with gcc 7
cmake -DwxBUILD_CXX_STANDARD=17 -DwxUSE_GUI=0 .. && cmake --build .
# if you currently do not have a gcc-7, you can use an image
podman run -it -v $PWD:$PWD -w$PWD --userns=keep-id conanio/gcc7 sh -c 'rm -rf xx1 ; mkdir xx1 ; cd xx1 && cmake -DwxBUILD_CXX_STANDARD=17 -DwxUSE_GUI=0 .. && cmake --build .'
string.cpp does not compile:
[ 61%] Building CXX object libs/base/CMakeFiles/wxbase.dir/__/__/__/src/common/string.cpp.o
/icpers/hl/work/tecs/hellowx/wxWidgets-master/src/common/string.cpp:1571:10: fatal error: charconv: No such file or directory
#include <charconv>
^~~~~~~~~~
compilation terminated.
libs/base/CMakeFiles/wxbase.dir/build.make:950: recipe for target 'libs/base/CMakeFiles/wxbase.dir/__/__/__/src/common/string.cpp.o' failed
the issue sounds like https://stackoverflow.com/questions/49639808/fatal-error-charconv-file-not-found-in-clang-6-0-with-std-c17
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
I hoped we could avoid configure checks for C++17 compilers, but apparently no such luck :-(
Maybe we could use __has_include
however, as any C++17 compiler is supposed to have it?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
created (trivial) pull request as @vadz proposed #23487
Sorry, I have only tried this with with linux, some gcc/clang versions.
# clang 5 podman run -it -v $PWD:$PWD -w$PWD --user $(id -u):$(id -g) --userns=keep-id conanio/clang50 sh -c 'mkdir -p xx1 ; cd xx1 && cmake -DwxBUILD_CXX_STANDARD=17 -DwxUSE_GUI=0 .. && cmake --build . -j$(nproc)' # gcc 7 podman run -it -v $PWD:$PWD -w$PWD --user $(id -u):$(id -g) --userns=keep-id conanio/gcc7 sh -c 'mkdir -p xx1 ; cd xx1 && cmake -DwxBUILD_CXX_STANDARD=17 -DwxUSE_GUI=0 .. && cmake --build . -j$(nproc)' # if you have docker (instead of podman) installed: docker run -it -v $PWD:$PWD -w$PWD --user $(id -u):$(id -g) conanio/gcc7 sh -c 'mkdir -p xx1 ; cd xx1 && cmake -DwxBUILD_CXX_STANDARD=17 -DwxUSE_GUI=0 .. && cmake --build . -j$(nproc)'
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Closed #23484 as completed via 160b4dd.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.