delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/20/14:13:42

Date: Sun, 20 Feb 2000 12:02:11 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: sam <samirw AT connection DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: ERROR: files.o(.bss+0x0):files.cc: multiple definition of "qelem"
In-Reply-To: <38AF6950.815C331A@connection.com>
Message-ID: <Pine.SUN.3.91.1000220120151.25009v-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sat, 19 Feb 2000, sam wrote:

>    ERROR: files.o(.bss+0x0):files.cc: multiple definition of "qelem"
>    ERROR: diskutil.o(.bss+0x300):diskutil.cc: first defined here
> 
> Anyone, have any idea what this is?

The error messages are very clear: the linker sees two definitions of
the symbol `qelem': one in the file file.cc, the other in
diskutil.cc.  You need to look in these two files to understand why.

> Looks to me like a DJGPP variable.

If you include the header <search.h>, it's possible that you are
redefining the structure declared in that file.  Simply don't call
your variables/structures/classes `qelem', pick up another name.
`qelem', like all the rest of names defined by the ANSI C Standard,
are reserved and cannot be used for user variables/functions.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019