Path: utzoo!utdoe!generic!mikegord From: mikegord@generic.UUCP (Mike Gorodnitzky) Newsgroups: comp.lang.c Subject: Re: Correct or Not or Old-fashioned or Bug Message-ID: <751@generic.UUCP> Date: 21 May 91 00:39:27 GMT References: Reply-To: mikegord@generic.UUCP (Mike Gorodnitzky) Distribution: comp.lang.c Organization: pnet91 Public Access Usenet news/mail (416) 237-1204, 0308. Lines: 17 There seems to be one problem that may prevent compiling, or rather, linking. The problem is that because the variable 'i' is declared in several modules (4),the linker will choke as it is illegal to do this. It will have global's called'i' conflicting with each other. This is bad. What you may want to do is declare in: pro_all.h--------- extern int i; pro_main.c-------- int i; And keep the rest as is. I haven't actually tried this, so can't be 100% sure about it, but it should work ok.