Date: Sun, 20 Feb 2000 12:02:11 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: sam 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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 , 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.