From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem with include-files Date: Sat, 29 Aug 1998 01:37:53 -0700 Organization: Alcyone Systems Lines: 18 Message-ID: <35E7BDE1.6C5D4FC8@alcyone.com> References: <35e443c2 DOT 92340 AT news DOT space DOT net> NNTP-Posting-Host: kamali.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Klaus Petzold wrote: > When I link these files I get the following error message: > -multiple definition of 't' > What's wrong? It's because you're defining it more than once. Declarations (e.g., `extern int t;') should be in headers, whereas definitions (e.g., `int t;') should only be in _one_ source file. -- Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900 Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/ USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE \ / War is the province of chance. / Karl von Clausewitz