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

추가 답변 (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