Invalid ELF Header?
22 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Stacey
am 11 Jan. 2016
Kommentiert: Stacey
am 13 Jan. 2016
I'm trying to run a simulation that contains an S-function (originally created in C) and I keep getting the error "Invalid MEX file......Invalid ELF header". Can anyone tell me what I might be doing wrong? I had no issues when I was running this in Windows and I'm not sure why Linux keeps returning this error. I don't know much about ELF headers and I would really appreciate it if someone could explain to me what I am doing wrong here.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 12 Jan. 2016
The S function needs to be recompiled for Linux .
8 Kommentare
Walter Roberson
am 13 Jan. 2016
You might be able to add one of -ansi, -std=c++98, or -std=c++03 between the "mex" and the filename. g++ usually pays attention to the last occurrence of an argument.
There is probably a make file that can be edited or perhaps an XML file used by mex -setup -- it would depend which MATLAB version you are using.
Weitere Antworten (0)
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!