Why does my Engine API C application fail to build on a Linux machine with a link error "libstdc++.so.6 error: __cxa_thread_atexit_impl" error with R2026a and earlier
显示 更早的评论
I'm building a standalone application that links against the MATLAB 2025b Engine API libraries using Ubuntu 22.04.5 LTS. I'm building with GCC 11.4.0 (GLIBC 2.35, GNU ld 2.38) and the following build command.
gcc test_engine.c \
-I/usr/local/MATLAB/R2025b/extern/include \
-L/usr/local/MATLAB/R2025b/bin/glnxa64 \
-leng -lmx -lmat \
-o test_engine
Why am I getting the following link error?
Error:
/usr/bin/ld: /usr/local/MATLAB/R2025b/sys/os/glnxa64/libstdc++.so.6:
__cxa_thread_atexit_impl: invalid needed version 58
/usr/bin/ld: error adding symbols: bad value
collect2: error: ld returned 1 exit status
采纳的回答
更多回答(0 个)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!