loadlibrary does not find a function
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello, I'm trying to load a C libary into Matlab.
The case is very simple.
The header file libwrapper.h:
void call2(int)
The C file wrapper.C
#include "libwrapper.h"
void call2(int t)
{
}
The library is built as follows:
gcc -shared ./wrapper.c -o libwrapper.so
I checked with the nm command, the symbol call2 is in the library.
If I call in Matlab loadlibrary('libwrapper.so'), matlab does not find the function call2 (I get a warning)
What am I doing wrong?
2 comentarios
Respuestas (1)
Jan
el 13 de Sept. de 2023
Dear Michael,
I may have the same problem, but do not know how to make it work. How did you resolved it?
Thank you very much.
Kind regards, Jan.
0 comentarios
Ver también
Categorías
Más información sobre MATLAB Coder en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!