Bug #5892
openwt4 compilation failed with gcc 4.9
0%
Description
The commit https://github.com/emweb/wt/commit/470bc743f929fc742cc276cabbfe27ee2c900d35 fails compiling (and therefore the following):
src/Wt/Date/date.h:5530:21: error: 'const class std::time_get<char>' has no member named 'get'
f.get(is, 0, is, err, &tm, command, fmt+1);
This is because get method is not present in locale_facets_nonio.h for gcc 4.9 but is present in gcc 6
A workaround in order to compile with gcc 4.9 (Debian 8 Jessie 64 bit) would be highly appreciated :-)
Thx
Hyeoni
Updated by Hyeoni Hwasoo about 7 years ago
Is it possible to reinsert the #if ?
#if !ONLY_C_LOCALE
Here:
https://github.com/HowardHinnant/date/blob/873aa0515e1391c66848d2dfeff6925710b1cbad/date.h#L5874
Updated by Roel Standaert about 7 years ago
We're using his 2.2 release. Looks like this change was recent, so I'll see if I can update it when he does another versioned release.
Updated by Roel Standaert about 7 years ago
I recently tried to compile and use Wt 4 (latest commit on wt4 branch on GitHub) on Devuan Jessie to check your regex issue, and it did properly compile with the distribution's g--4.9 (after lowering the minimum required CMake version and supplying the -std=c++11 option).
I don't know what, but I guess there must be something else going wrong in your case.
Updated by Hyeoni Hwasoo about 7 years ago
Oh thank you very much for trying and spending time on it ! So now I'm a little bit confused ...
The only thing I did was install the backport version of cmake ...
I will check again with a fresh install and with your procedure (lowering the minimum required CMake version and supplying the -std=c++11 option).
I presume you can mark this issue as resolved.
Best regards
Hyeoni