Compilation Error when submitting to CERN's cluster

Hello everyone. This is my first post and I sincerely hope it is relevant to the discussions here. My question is how to deal with the error c++: error: unrecognized command line option ‘-std=c++14’ , that I receive after submitting my job to a cluster. The command to compile is

c++ `root-config --cflags --libs --evelibs` -Wno-unsequenced -O3 something.cc -o something

Thank you,

You are trying to use a compiler (“c++”) that does not support the “C++14” standard.
It seems your ROOT binaries were built with another/newer compiler.

BTW. Use (with the proper compiler):

$(root-config --cxx --cflags) -Wno-unsequenced -O3 -o something something.cc $(root-config --evelibs)