libstdc++.so.6: __cxa_thre​ad_atexit_​impl: invalid needed version 54

33 visualizaciones (últimos 30 días)
Han
Han el 19 de Jul. de 2024
Comentada: Han el 20 de Jul. de 2024
I got the error as show in my quesiton while I'm compling a fortran program on linux using matlab mex and libraries: libstdc++.so.6: __cxa_thread_atexit_impl: invalid needed version 54. Could some one help resolve this problem? Thank you!

Respuesta aceptada

Himanshu
Himanshu el 20 de Jul. de 2024
Editada: Himanshu el 20 de Jul. de 2024
Hey Han,
I had faced a similar issue in the past, and this is how I resolved it:
The problem seems to be caused by an incompatibility between the operating system's "libstdc++" version and the version used by MATLAB. When starting MATLAB, use the following workaround. At a Bash shell prompt, type:
> LD_PRELOAD=matlabroot/bin/glnxa64/glibc-2.17_shim.so application
where matlabroot is the path to the MATLAB installation and application is the original command that generated the error message.
Hope this helps!
  1 comentario
Han
Han el 20 de Jul. de 2024
Hi Himanshu,
Thanks a lot for the solution. When I use matlab2023b with the solution you provided, the problem still remains. But after I switch to matlab2024a, the problem got resolved.
Thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by