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

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2011년 12월 13일

0 개 추천

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

GF
GF 2011년 12월 14일
Thanks for your answer.
I use this method to generate .so,but qt creator just can not open the generated .so .
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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

질문:

GF
2011년 12월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by