<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Matt,</div><div class=""><br class=""></div><div class="">  One possibility is if your default environment doesn’t place the C++11 compliant compiler in</div><div class="">your PATH. Older SConstruct files don’t pull in your PATH environment so when it runs g++,</div><div class="">it is not running the one in your current shell. Your SConstruct should have something that looks</div><div class="">like this:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">env = Environment(        ENV = os.environ,  # Bring in full environment, including PATH</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                      CPPPATH = [include],</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                      LIBPATH = ["%s/%s/lib" %(halld_home, osname)],  # n.b. add HALLD_HOME here and prepend HALLD_MY below</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">                  variant_dir = ".%s" % (osname))</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">That first argument with “os.environ” is critical.</span></div><div class=""><br class=""></div><div class="">Regards,</div><div class="">-David</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 21, 2016, at 6:51 AM, Shepherd, Matthew <<a href="mailto:mashephe@indiana.edu" class="">mashephe@indiana.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class="">Tried posting to google groups but got bounced, then joined the group and the message still bounced... I might help to get help...<br class=""><br class=""><blockquote type="cite" class="">Begin forwarded message:<br class=""><br class="">From: "Shepherd, Matthew" <<a href="mailto:mashephe@indiana.edu" class="">mashephe@indiana.edu</a>><br class="">Subject: c++11 compilation error<br class="">Date: June 21, 2016 at 6:48:54 AM EDT<br class="">To: <a href="mailto:gluex-software@googlegroups.com" class="">gluex-software@googlegroups.com</a><br class=""><br class=""><br class="">Hi all,<br class=""><br class="">I'm having trouble with compiler flags when building a plugin.  The problem seems to be with the option:  -std="c++11" that is generated by root-config.  It seems the compiler I use supports this option, and I can't figured out why this is causing an error.  Any help/ideas?<br class=""><br class="">Thanks!<br class=""><br class="">[mashephe@h1 pi0g_incl]$ gcc --version<br class="">gcc (GCC) 4.9.2<br class="">Copyright (C) 2014 Free Software Foundation, Inc.<br class="">This is free software; see the source for copying conditions.  There is NO<br class="">warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br class=""><br class="">[mashephe@h1 pi0g_incl]$ scons SHOWBUILD=1<br class="">scons: Reading SConscript files ...<br class="">looking for sbms_Linux.py<br class="">No module named sbms_Linux<br class="">looking for sbms_build.py<br class="">No module named sbms_build<br class="">scons: done reading SConscript files.<br class="">scons: Building targets ...<br class="">g++ -o DCustomAction_pi0g_incl.os -c -g -fPIC -Wall -std=c++11 -DHAVE_CCDB -DHAVE_EVIO -fPIC -pthread -Wno-deprecated-declarations -m64 -fPIC -I. -I/gpfs/home/m/a/mashephe/Karst/gluex/gluex_offline/sim-recon/sim-recon-recon-2016_02-ver01/src -I/gpfs/home/m/a/mashephe/Karst/gluex/gluex_offline/sim-recon/sim-recon-recon-2016_02-ver01/src/libraries -I/gpfs/home/m/a/mashephe/Karst/gluex/gluex_offline/sim-recon/sim-recon-recon-2016_02-ver01/src/libraries/include -I/N/u/mashephe/Karst/gluex/my_src/src -I/N/u/mashephe/Karst/gluex/my_src/src/libraries -I/N/u/mashephe/Karst/gluex/my_src/src/libraries/include -I/gpfs/home/m/a/mashephe/Karst/gluex/gluex_offline/sim-recon/sim-recon-recon-2016_02-ver01/build/include -Iexternal/xstream/include -I/gpfs/home/m/a/mashephe/Karst/root/include -I/gpfs/home/m/a/mashephe/Karst/gluex/gluex_offline/jana/jana_0.7.5p2/Linux_RH-x86_64-gcc4.9.2/include -I/N/u/mashephe/Karst/gluex/gluex_offline/ccdb/ccdb_1.06.01/include -I/N/u/mashephe/Karst/gluex/glu!<br class=""></blockquote> ex_offline/hdds/hdds-recon-2016_02-ver01/build/src -I/N/u/mashephe/Karst/gluex/gluex_offline/xerces-c/xerces-c-3.1.2/include -I/N/u/mashephe/Karst/gluex/gluex_offline/evio/evio-4.3.1/Linux-x86_64/include DCustomAction_pi0g_incl.cc<br class=""><blockquote type="cite" class="">cc1plus: error: unrecognized command line option "-std=c++11"<br class="">scons: *** [DCustomAction_pi0g_incl.os] Error 1<br class="">scons: building terminated because of errors.<br class=""><br class="">---------------------------------------------------------------------<br class="">Matthew Shepherd, Associate Professor<br class="">Department of Physics, Indiana University, Swain West 265<br class="">727 East Third Street, Bloomington, IN 47405<br class=""><br class="">Office Phone:  +1 812 856 5808<br class=""><br class=""></blockquote><br class=""><br class="">_______________________________________________<br class="">Halld-offline mailing list<br class=""><a href="mailto:Halld-offline@jlab.org" class="">Halld-offline@jlab.org</a><br class="">https://mailman.jlab.org/mailman/listinfo/halld-offline<br class=""></div></div></blockquote></div><br class=""></body></html>