Main Content

Additional source files

Source files to compile and link with the generated code

Description

App Configuration Pane: Custom Code

Configuration Objects: coder.MexCodeConfig | coder.CodeConfig | coder.EmbeddedCodeConfig

The Additional source files parameter specifies the source files to compile and link with the generated code. Enter or select the files to include.

If you do not specify a folder, the build process searches for the source files first in the current folder, and then in the include folders that you specify in Additional include directories.

If source files with the same name occur in multiple folders on the search path, the build process might use a different file than the file that you specified. For example, suppose that you specify foo.cpp as a source file. If foo.c and foo.cpp are both on the search path, you cannot be sure whether the build process uses foo.c or foo.cpp.

Settings

String array

Files to compile and link with the generated code.

Programmatic Use

Property: CustomSource
Values: ' ' | string array | cell array of character vectors | character vector

Version History

Introduced in R2011a

expand all