Wrong GLIBCXX version when running a program that was compiled on the same machine

前端 未结 1 1335
不知归路
不知归路 2021-01-28 19:59

How is it possible that a program that I compile, link and run on the same machine to have GLIBCXX version errors when I try to run it? Does anyone know?

Here is the err

1条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-28 20:29

    Runtime paths are different to compile paths. Sounds like you have more than one version of your libraries on your system. check your LD_LIBRARY_PATH env variable and call your executable with ldd to see what libraries it is using/trying to use.

    0 讨论(0)
提交回复
热议问题