Is it possible to generate a single header file for a multiple entry-point function?

Hello everyone!
I'm using the Matlab Coder to generate a DLL from multiple Matlab functions. Using codegen I get a DLL and a header file for every single function.
For example: "codegen -o output_name function_one.m -args {1} function_two -args {1}" results in the files: output_name.dll, function_one.h, function_two.h
I think it would be less complicated to generate a DLL with a SINGLE header file that contains ALL functions. Is it possible to do that?
Thanks!
Alexander

 採用された回答

Takshak Desai
Takshak Desai 2015 年 1 月 22 日
For generating code for all the functions in a single file, you can do the following:
c = coder.config('dll');
c.FilePartitionMethod = 'SingleFile';
codegen -config c -o output_name ...

その他の回答 (1 件)

カテゴリ

ヘルプ センター および File Exchange で MATLAB Coder についてさらに検索

製品

質問済み:

2015 年 1 月 9 日

回答済み:

2015 年 1 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by