add more info about -warn-common

This commit is contained in:
David MacKenzie 1993-08-03 23:09:03 +00:00
parent 2a28d8b006
commit 1cd4cca9bf
1 changed files with 2 additions and 0 deletions

View File

@ -586,6 +586,8 @@ Warn when a common symbol is combined with another common symbol or with
a symbol definition. Unix linkers allow this somewhat sloppy practice,
but linkers on some other operating systems do not. This option allows
you to find potential problems from combining global symbols.
Unfortunately, some C libraries use this practice, so you may get some
warnings about symbols in the libraries as well as in your programs.
There are three kinds of global symbols, illustrated here by C examples: