matlab for linux generate a c++ shared library

mcc -W cpplib:libfoo -T link:lib foo.m bar.m
I want to know whether the upper sentence works in linux。
many thanks

Respuestas (1)

Kaustubha Govind
Kaustubha Govind el 13 de Dic. de 2011

0 votos

I believe it should. A similar command is shown under "For a C++ Application on UNIX" at http://www.mathworks.com/help/toolbox/compiler/f2-998954.html#bqlsafn-33_1

2 comentarios

GF
GF el 14 de Dic. de 2011
Thanks for your answer.
I use this method to generate .so,but qt creator just can not open the generated .so .
Kaustubha Govind
Kaustubha Govind el 15 de Dic. de 2011
Are you using the .so on a computer that does not have MATLAB installed? If so, make sure that you install MCR on it. Also, you might need to follow other steps as listed in the documentation: http://www.mathworks.com/help/toolbox/compiler/f2-972343.html

Iniciar sesión para comentar.

Categorías

Más información sobre C Shared Library Integration en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

GF
el 13 de Dic. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by