필터 지우기
필터 지우기

Add 'lib' prefix to libraries generated with MATLAB Code Generator

조회 수: 1 (최근 30일)
Devin
Devin 2022년 7월 27일
댓글: Devin 2022년 8월 3일
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?

채택된 답변

Ryan Livingston
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
  댓글 수: 1
Devin
Devin 2022년 8월 3일
This worked, thanks! I'm using the command line interface so I guess it was a little less obvious.

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

추가 답변 (0개)

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by