[build2] [bug] Compilation error not visible in the reported file (wrong file reported?)

Klaim - Joël Lamotte mjklaim at gmail.com
Thu Mar 15 17:07:23 UTC 2018


On 15 March 2018 at 15:29, Boris Kolpackov <boris at codesynthesis.com> wrote:

> Klaim - Joėl Lamotte <mjklaim at gmail.com> writes:
>
> > fatal error C1021: invalid preprocessor command 'to_string'
>
> This appears to be a bug in VC's preprocessor's handling of raw string
> literals. I've managed to reproduce the problem with this test case
> (which I've reported to the VC folks):
>
>
Aw that's nasty!


> I can't think of a way to work around this without modifying the
> project's source code (e.g., to #ifdef-out this fragment during
> the preprocessor run). Let me know if you are interested in this
> approach and I will provide more information.
>
>
I am interested.
By the way, it seems that just not using litteral strings should work?
They can be replaced by normal strings and escaping I believe. If that's
the source of the issue, I can do that modification.

Or changing some compiler flags? I don't understand how CMake manage to
generate a compiler invocation
that seem to build correctly.

A. Joël Lamotte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.build2.org/archives/users/attachments/20180315/2f4b397f/attachment.html>


More information about the users mailing list