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)

Dear Wile,

Thank you for your prompt response. I have a couple of follow-up questions regarding our discussion. Firstly, would it be preferable to use the currency symbol “$” instead of “`” in our context? Please let me know your thoughts on this matter.

Additionally, I wanted to confirm whether I can compile the script locally without relying on the cluster’s libraries. Based on my understanding, the libraries on the cluster have not been updated. am I right?

Thank you once again for your assistance. I look forward to your response.

Best regards,
Montechristo