Yet another interesting error. This time, the problem is that it needs spaces between the “literal and identifier”. Take a look:

[CODE]
hardware/qcom/display-caf/apq8084/libqdutils/profiler.cpp:130:22: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
ALOGD(“%”PRId64″ %”PRId64″ %”PRId64″ %”PRId64″ %”PRId64” %”PRId64,
^

hardware/qcom/display-caf/apq8084/libqdutils/profiler.cpp:130:32: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
ALOGD(“%”PRId64″ %”PRId64″ %”PRId64″ %”PRId64″ %”PRId64” %”PRId64,
^

hardware/qcom/display-caf/apq8084/libqdutils/profiler.cpp:130:42: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
ALOGD(“%”PRId64″ %”PRId64″ %”PRId64″ %”PRId64″ %”PRId64” %”PRId64,
^

hardware/qcom/display-caf/apq8084/libqdutils/profiler.cpp:130:52: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
ALOGD(“%”PRId64″ %”PRId64″ %”PRId64″ %”PRId64″ %”PRId64” %”PRId64,
^

hardware/qcom/display-caf/apq8084/libqdutils/profiler.cpp:130:62: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
ALOGD(“%”PRId64″ %”PRId64″ %”PRId64″ %”PRId64″ %”PRId64” %”PRId64,
^

hardware/qcom/display-caf/apq8084/libqdutils/profiler.cpp:130:72: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
ALOGD(“%”PRId64″ %”PRId64″ %”PRId64″ %”PRId64″ %”PRId64” %”PRId64,

[/CODE]

So, I changed them to be:

[CODE]
ALOGD(“%” PRId64″ %” PRId64″ %” PRId64″ %” PRId64″ %” PRId64″ %” PRId64,
[/CODE]

And now the error has been silenced! I really like it when the problem is easy to identify and solve!

Linux – keep it simple.

 

Leave a Reply

Your email address will not be published. Required fields are marked *