I’m trying to use TGLVector3, which prompts me with the following information. I don’t know how to solve it
IncrementalExecutor::executeFunction: symbol '_ZN10TGLVector3C1Eddd' unresolved while linking [cling interface function]!
You are probably missing the definition of TGLVector3::TGLVector3(double, double, double)
Maybe you need to load the corresponding shared library?
Hi,I am studying a program and found that it can’t run. During the test, I found that there was a problem with TGLVector3 at the beginning. The following is the part of the test
Then,I try TGLVector3 on the command line of ROOT, and the following prompt will appear
root [0] TGLVector3(1,2,3) IncrementalExecutor::executeFunction: symbol '_ZN10TGLVector3C1Eddd' unresolved while linking [cling interface function]! You are probably missing the definition of TGLVector3::TGLVector3(double, double, double) Maybe you need to load the corresponding shared library?
root [1]
root [0] TGLVector3 *v = new TGLVector3(1,2,3)
IncrementalExecutor::executeFunction: symbol '_ZN10TGLVector3C1Eddd' unresolved while linking function '_GLOBAL__sub_I_cling_module_47'!
You are probably missing the definition of TGLVector3::TGLVector3(double, double, double)
Maybe you need to load the corresponding shared library?
(TGLVector3 *) nullptr
root [1]
I use the CentOS system. Root is installed according to the method provided by the official website. Is there something missing?
Are you sure you are running the new ROOT you just installed ? have you “sourced” the thisroot.sh script ? did the installation went smoothly without errors ?
I sure I are running the new ROOT I just installed .And I “sourced” the thisroot.sh script.I didn’t look “errors” when I installed it.
I installed the root on centos8. Just now I also re installed the root on centos7 according to this method. I found that tglvector3 can be used. Is this method not applicable to centos8?
Ok. It looks like something related with Cling as this class is not found (on centos8 only). At least the reproducer is simple. May be @Axel has some ideas about this
issue.
OK so that explains I’d recommend you grab ROOT from our binary downloads, or from Conda, or from your distro, instead of building from source. If you have to build from source, make sure that cmake informs you that gl is enabled. This will depend on some packages, see https://root.cern/install/build_from_source/
But again, please consider installing binaries if possible!