Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: To include or not to include Date: Tue, 27 Sep 2016 11:42:58 -0700 Organization: None to speak of Lines: 29 Message-ID: References: <87zimyhk54.fsf@bsb.me.uk> <87a8ewgb5y.fsf@bsb.me.uk> <87r388dzw9.fsf@bsb.me.uk> <87vaxhbhhi.fsf@bsb.me.uk> <87inthbf8o.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="32071"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/L/RU792WIixyZiQesH90p" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:T/3IvGH375tu0M4V/gjdzsEJeus= sha1:hM5ODP4E0/0W5z/83w4ekIAVq0M= Xref: csiph.com comp.lang.c:94158 BartC writes: > On 27/09/2016 15:15, Ben Bacarisse wrote: >> BartC writes: > >>> Which leads to a problem due to the way C automatically exports >>> objects unless you say 'static'. >>> >>> You use a library consisting of modules X,Y which share a >>> program-scope variable D. >> >> How do I tell that modules called X and Y are being used? I.e. what do >> you mean by this term, since has no formal definition in C? > > gcc A.c X.c Y.c Was that intended to explain what you mean by the word "module"? Let me ask directly: What exactly do you mean by the word "module"? If it's a synonym for "translation unit" or "source file", can you just use that term instead? > But, with auto-make systems people use these days, you may not know. > That doesn't change the point however. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"