On Sat, Apr 7, 2018 at 3:43 PM, Partha Bagchi <partha1b@xxxxxxxxx> wrote: > > > On Sat, Apr 7, 2018 at 1:24 PM, Ell via gimp-developer-list < > gimp-developer-list@xxxxxxxxx> wrote: > >> On Sat, 7 Apr 2018 12:41:10 -0400 >> Partha Bagchi <partha1b@xxxxxxxxx> wrote: >> >> > Ell my friend, it's me again. :) >> > >> > We can't use gnu++11 with objective-c code. >> > >> > CXX gimp-parallel.o >> > >> > error: invalid argument '-std=gnu++11' not allowed with 'Objective-C' >> > >> > make[3]: *** [gimp-parallel.o] Error 1 >> > >> > So, how do we fix this? Also, shouldn't we be using c++11 or c++14 to >> > be generic? >> >> The specific compiler flag is chosen by some configure magic, so it >> should generally be ok. A little googling shows that people are >> getting the same error with -std=c++11 too. >> >> I'm not sure why clang tries to compile this as objective-c, though. >> Can you post the output of $ make V=1 ? >> >> -- >> Ell >> >> My apologies. I should have framed that as 2 different issues. One about > the compilation and the other that we should probably be using C++14 (or > 11) instead of gnu++11. > > In any case, the verbose mode may not be particularly helpful: > > g++ -DHAVE_CONFIG_H -I. -I../.. -DGIMPDIR=\""GIMP"\" > -DGIMP_APP_VERSION=\"2.10\" -DGIMP_USER_VERSION=\"2.10\" > -DG_LOG_DOMAIN=\"Gimp-Core\" -I../.. -I../.. -I../../app -I../../app > -I/Users/partha/local10.9/include/cairo -I/Users/partha/local10.9/include/pixman-1 > -I/Users/partha/local10.9/include -I/Users/partha/local10.9/include/freetype2 > -I/Users/partha/local10.9/include -I/Users/partha/local10.9/include/libpng16 > -I/Users/partha/local10.9/include/harfbuzz -I/Users/partha/local10.9/include/glib-2.0 > -I/Users/partha/local10.9/lib/glib-2.0/include -I/Users/partha/local10.9/include > -I/Users/partha/local10.9/include/freetype2 -I/Users/partha/local10.9/include/harfbuzz > -I/Users/partha/local10.9/include/glib-2.0 -I/Users/partha/local10.9/lib/glib-2.0/include > -I/Users/partha/local10.9/include/libpng16 -I/Users/partha/local10.9/include > -D_REENTRANT -I/Users/partha/local10.9/include/json-glib-1.0 > -I/Users/partha/local10.9/include/gio-unix-2.0/ -I/Users/partha/local10.9/include/glib-2.0 > -I/Users/partha/local10.9/lib/glib-2.0/include -I/Users/partha/local10.9/ > mcgimp-std/Contents/Resources/include/gegl-0.3 -I/Users/partha/local10.9/ > mcgimp-std/Contents/Resources/include/babl-0.1 -D_REENTRANT > -I/Users/partha/local10.9/include/gdk-pixbuf-2.0 > -I/Users/partha/local10.9/include/libpng16 -I/Users/partha/local10.9/include > -I/Users/partha/local10.9/include/glib-2.0 -I/Users/partha/local10.9/lib/glib-2.0/include > -I/Users/partha/local10.9/include/libmypaint -I/Users/partha/local10.9/include/json-c > -I/Users/partha/local10.9/include/glib-2.0 -I/Users/partha/local10.9/lib/glib-2.0/include > -I/Users/partha/local10.9/include -I/Users/partha/local10.9/include/glib-2.0 > -I/Users/partha/local10.9/lib/glib-2.0/include -I/Users/partha/local10.9/ > mcgimp-std/Contents/Resources/include "-xobjective-c" > -I/Users/partha/local10.9/include -DGIMP_DISABLE_DEPRECATED > -DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGDK_DISABLE_DEPRECATED > -DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE > -std=c++14 -O3 -ffast-math -ftree-vectorize -mmacosx-version-min=10.9 -MT > gimp-parallel.o -MD -MP -MF .deps/gimp-parallel.Tpo -c -o gimp-parallel.o > gimp-parallel.cc > error: invalid argument '-std=c++14' not allowed with 'Objective-C' > make: *** [gimp-parallel.o] Error 1 > > In there you can see "-xobjective-c" is being used to compile > gimp-parallel.cc. Also, you're seeing -std=c++14 because I have CXXFLAGS > defined that way. > > Thanks, > Partha > > As a further test, I tried this: c++ -std=c++14 -O3 -ffast-math -ftree-vectorize -mmacosx-version-min=10.9 -c gimp-parallel.cc -I. -I../.. `pkg-config --cflags glib-2.0` `pkg-config --cflags gegl-0.3` -I.. It compiles fine. Hope that's helpful. _______________________________________________ gimp-developer-list mailing list List address: gimp-developer-list@xxxxxxxxx List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list List archives: https://mail.gnome.org/archives/gimp-developer-list