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

 Respuesta aceptada

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

Categorías

Más información sobre MATLAB Coder en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 9 de En. de 2015

Respondida:

el 22 de En. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by