genObject C File Option

Syntax: Default:
file(genObject[, yes])
file(genObject, pathName)
file(genObject, no)
file(genObject[, yes])

This option determines whether the C compiler generates object files.

By default, the C compiler produces an object file in the current working directory for each source file.

When file(genObject) is set to yes, an object file is produced for every source to which the option applies. By default, object files have the same name as the source file and the extension .obj (on OS/2 and Windows NT platforms) or .o (on AIX).

When file(genObject, pathName) is specified, pathName can be the relative or absolute path name of either a file or a directory.  If you supply a file name, the name of the object file created will be pathName.  In this case, make sure the option applies to only one source file. Otherwise the object code is overwritten by every file compiled after the first source because the same output file name is used for each source.   If you supply a directory name, the object files created are placed into that directory.

This option is implicitly set to no when file(syntaxOnly) or pp(preprocessOnly) are in effect.

Setting this option to no implicitly sets gen(debug, no).



C Compilation
Configuration Files


Set Build Options
Build


C File Options