https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91187
--- Comment #6 from Albert Astals Cid <aacid at kde dot org> --- Created attachment 46609 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46609&action=edit the said main-glib.cpp file well the line has to be g++ -c -Wzero-as-null-pointer-constant main-glib.cpp -isystem /usr/include/glib-2.0/ -isystem /usr/lib/glib-2.0/include and not g++ -c -Wzero-as-null-pointer-constant main.cpp -isystem /usr/include/glib-2.0/ -isystem /usr/lib/glib-2.0/include also you need to have glib2 installed somewhere, may be different paths than mine