error of compilation with mex (environement wsl -> ubuntu -> matlab 2024)
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
I tried to execute this simple compilation
> mex yprime.c
and I got this error
> Building with 'gcc'.
Error using mex
/usr/bin/ld: cannot find -lstdc++: No such file or directory
collect2: error: ld returned 1 exit status
Can you help me,
0 Kommentare
Antworten (1)
Animesh
am 24 Mai 2024
The following MATLAB Answer might be of help:
3 Kommentare
Animesh
am 31 Jul. 2024
Hey @Remi Choquet
It seems that the operating system's version of "libstdc++" and the version being used by MATLAB are different. Here is something you could try: when starting MATLAB, use the following command in the Bash shell:
LD_PRELOAD=matlabroot/bin/glnxa64/glibc-2.17_shim.so application
Here, "matlabroot" is the MATLAB installation path, and "application" is the original command that generated the error message.
Siehe auch
Kategorien
Mehr zu MATLAB Compiler finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!