Mail Archives: djgpp/1998/08/29/05:00:52
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
- Raw text -