On 1/28/19 3:35 AM, Nicola Giuliani wrote:
>
> and It reports
>
> <command-line>:0:11: error: expected identifier before numeric constant
> <command-line>:0:11: error: expected unqualified-id before numeric constant
> <command-line>:0:11: error: expected unqualified-id before numeric constant
>
> Looking on the internet I have seen that it should be an error at line 0
> character 11, but this is one of the "i" in "ngiuiani" so I don't understand.
The key to finding what's happening is that it is on the command line. I
believe that what is happening is, for example, that the command line *should*
contain text like
-D some_symbol -std=c++17
but for whatever reason, something in the cmake scripts has gone wrong and we
end up with
-D -std=c++17
The compiler then tries to interpret "-std=c++17" as a token sequence that
would make sense as a `#define` macro name, and finds that this doesn't work.
I don't see where in your command that happens, but since you have it, you can
copy-paste it onto the command line, and reduce it until the error goes away
-- for example, you can remove all of the -W... flags (unimportant during
linking), -I..., -isystem, ... flags (also unimportant) and see what remains
and what causes it. If you know what causes it, the solution will likely be
obvious.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/