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

 采纳的回答

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 ...

类别

在 帮助中心 和 File Exchange 中查找有关 MATLAB Coder 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by