Azzera filtri
Azzera filtri

error of compilation with mex (environement wsl -> ubuntu -> matlab 2024)

16 visualizzazioni (ultimi 30 giorni)
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,

Risposte (1)

Animesh
Animesh il 24 Mag 2024
The following MATLAB Answer might be of help:
  2 Commenti
Remi Choquet
Remi Choquet il 27 Mag 2024
Modificato: Remi Choquet il 27 Mag 2024
Thank you for your reply.
I understood that the path of the library was not ok.
I think that I succeed to solve by specifying the exact adress of the library but now I have another error.
Error using mex
/usr/bin/ld: /usr/local/MATLAB/R2024a/bin/glnxa64/libstdc++.so.6: __cxa_thread_atexit_impl: invalid needed
version 54
/usr/bin/ld: /usr/local/MATLAB/R2024a/bin/glnxa64/libstdc++.so.6: error adding symbols: bad value
collect2: error: ld returned 1 exit status
This error occurs for both matlab 2019 and 2024. Can you help me?
Han
Han il 18 Lug 2024 alle 22:01
I got exactly the same problem, could someone help with this?

Accedi per commentare.

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Prodotti


Release

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by