Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.misc Subject: Re: What Window Manager/Desktop Environment do you use, and why? Date: 10 Jun 2025 03:25:23 GMT Lines: 24 Message-ID: References: <1025jut$alt7$9@dont-email.me> <1026lm6$hj96$5@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net p3A20UwEoaQBI8OoNcJvRw0JztPK6WLbG6mfD6QCkcC02KQqdV Cancel-Lock: sha1:L3g2WUABsbCYty/4689nUlt4GoY= sha256:z4I3WG+MX8ORQvcnd9UbWDVdVFlZbkupqpOK+CS1rC0= User-Agent: Pan/0.160 (Toresk; ) Xref: csiph.com comp.os.linux.misc:68615 On Tue, 10 Jun 2025 02:09:55 GMT, Charlie Gibbs wrote: > On 2025-06-09, rbowman wrote: > >> Moving from AIX was an interesting exercise too. AIX was extremely >> lenient about NULL accesses. While it was never good technique defining >> variable in header files got a pass for years. Then whatever gcc >> shipped with Debian Bullseye got snotty about multiple definitions. > > Define PRIMARY in your main module, but not in the others. > Then, in the .h file that all your modules include: > > #ifndef PRIMARY #define GLOBAL extern #endif > > GLOBAL int foo; > > Works a treat, even on the latest gcc. I can't remember the flag offhand but it was easier to set it in the Makefiles. When you're dealing with over 25 years of technical debt with convoluted includes you tend to take the easiest way out. A problem with having very little turnover in the programming staff is no newbie to assign to the scut work.