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
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
2011 年 12 月 14 日
Kaustubha Govind
2011 年 12 月 15 日
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 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!