Compile C++ for Unix environment
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
William White
el 19 de Dic. de 2016
Comentada: Walter Roberson
el 21 de Dic. de 2016
Sirs, I have some C++ code that is currently compiled to operate within Matlab in a Windows environment (Mex'ed).
I wish to run the Matlab code within a Unix environment, which means re-compiling the C++ code.
Can I re-compile the code within a Windows environment so that it works on Unix? Or do I need to use Matlab on a Linux machine to compile the code?
kind regards W
3 comentarios
Walter Roberson
el 21 de Dic. de 2016
You would have to install a Windows emulator on the Linux system.
Respuesta aceptada
Mandar Patwardhan
el 21 de Dic. de 2016
If you wish to run the Matlab code within a Unix environment then you will have to compile it on a Linux machine. Compiling on a Windows machine will not work in this case.
Take a look at the Tips section in the following link which talks about platform specific extensions for mex. https://www.mathworks.com/help/matlab/ref/mex.html?searchHighlight=mex&s_tid=doc_srchtitle#moreabout
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Write C Functions Callable from MATLAB (MEX Files) 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!