![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1086795/image.png)
Add 'lib' prefix to libraries generated with MATLAB Code Generator
4 ビュー (過去 30 日間)
古いコメントを表示
I've generated some C++ code from some MATLAB code that I have on my Mac. I'm using the DLL option to generate a shared library. However the shared libraries I've generated have names like "mylibrary.dylib" and my compiler expects "libmylibrary.dylib". Is there any way to tell MATLAB to add in the "lib" prefix?
0 件のコメント
採用された回答
Ryan Livingston
2022 年 8 月 3 日
You can use the -o argument to codegen to rename the library:
codegen somecode -args 1 -o libmylibrary
In the Coder App the "Output file name" setting controls this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1086795/image.png)
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!