GNOME Bugzilla – Bug 748376
Fix build problem when using clang in C++11 mode
Last modified: 2015-04-23 16:53:37 UTC
I got this error when compiling vte with 'clang++ -std=c++11': vtedraw.cc:1499:41: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] g_printerr ("draw_text (\"%s\", len=%"G_GSIZE_FORMAT", color=(%d,%d,%d,%d), %s - %s)\n", ^ The attached patch fixes this problem. I also modified check-libstdc++.sh to make it check both libstdc++ and libc++, so it can be useful on FreeBSD 10 and later versions.
Created attachment 302236 [details] [review] [PATCH 1/2] build: Fix build when using C++11 mode
Created attachment 302237 [details] [review] [PATCH 2/2] build: Add libc++ check to check-libstdc++.sh
Comment on attachment 302237 [details] [review] [PATCH 2/2] build: Add libc++ check to check-libstdc++.sh Ok. (Although it's likely I'll remove this check and actually use libstdc++, soon.)
Attachment 302236 [details] pushed as 42ecf1a - build: Fix build when using C++11 mode Attachment 302237 [details] pushed as 5a58273 - build: Add libc++ check to check-libstdc++.sh