SPRU513AA July 2001 – March 2026 SM320F28335-EP
The --start-group and --end-group options can be used to associate a set of library files. These files will be treated as a single library, which will be iteratively scanned in the order listed until no more undefined symbols can be resolved by the group. These options are useful for resolving backwards or cyclical dependencies across libraries without listing the libraries on the command line multiple times.
These grouping options are similar to the --reread_libs (-x) linker option, except that the group options provide finer control over which libraries to iterate over. The grouping options can be used with the --reread_libs option.
These grouping options are not compatible with the --priority option. If the --priority option is used, the libraries specified with the grouping options are ignored.
For example:
cl2000 --run_linker --start-group a.lib b.lib --end-group c.libSuppose the definitions and functions used in this example are as follows, where there is a cyclic dependency between a.lib and b.lib and there is an alternate definition of fcn_a() in c.lib:
The linker scans the files and the following occurs: