On Tue, 9 Sep 2003, Matthieu Herrb wrote: > ... and a 3rd reason is that 'extern' is not optional for > variables. Most traditional Unix linkers will allow the same variable > to be declared without 'extern' in multiple object files and merge > them into only one, but this behaviour is not a feature one should > rely on. And it fact, at least the Darwin linker treats this as an > error.
true - most do, though the nicer ones warn about it (IRIX64 and Tru64, iirc). I've been burned occasionally by code that relies on the common linkage, and have used one of gcc's options to warn about it (-Xlink -warn-common). -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net _______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
