Re: [pcre-dev] CXX11 compatibility issue

Top Page
Delete this message
Author: Giuseppe D'Angelo
Date:  
To: Arlen Keshabyan
CC: Pcre-dev
Subject: Re: [pcre-dev] CXX11 compatibility issue
On 21 May 2012 15:55, Arlen Keshabyan <arlen.albert@???> wrote:
> Hello,
>
> The last PCRE library (8.30) has CXX11 compatibility issue while
> compiled by the GCC 4.7 compiler. I got the following error message in
> sljitLir.c file:
>
> 'unable to find string literal operator ‘operator"" SLJIT_PRINT_D'
>
> To solve the problem and keep compatibility with the compilers that do
> not support CXX11 yet, I've placed the single space character right
> after "#%" string. So, the code should look like "#%" SLJIT_PRINT_D"d"
> instead of "#%"SLJIT_PRINT_D"d". This way, it's OK for old compilers
> and for CXX11 compliant ones.


Out of curiosity, why are you compiling a .c file with a C++11 compiler?

Cheers,
--
Giuseppe D'Angelo