Project

General

Profile

Actions

Bug #5892

open

wt4 compilation failed with gcc 4.9

Added by Hyeoni Hwasoo about 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
08/24/2017
Due date:
% Done:

0%

Estimated time:

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

Actions #1

Updated by Hyeoni Hwasoo about 7 years ago

Actions #2

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.

Actions #3

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.

Actions #4

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

Actions

Also available in: Atom PDF