Matlab C++ API libMatlabEngine.so Compatibility among different Matlab Versions
Mostrar comentarios más antiguos
Hi everyone,
My question is with regards to the compatibility of the libMatlabEngine of the C++ Matlab API.
Specifically I'm building a C++ mex function with CMAKE with Matlab 2021a.
When I try to evaluate the mex function in a Matlab e.g 2023a version the libMatlabEngine.so is not found.
After running the ldd command for the mex function it seems that the mex function is still points to the libMatlabEngine.so from R2021a. All the other dynamic libraries though are successfully resolved to the R2023a though which seems a bit confusing.

I couldn't find any guidelines with explicit mention on libMatlabEngine.so compatibility among different Matlab versions and best practices on that issue. Should we build C++ mex functions specifically for only one Matlab version?
Best,
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Write C Functions Callable from MATLAB (MEX Files) en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!