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

 Réponse acceptée

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

Catégories

En savoir plus sur MATLAB Coder dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by