Mail Archives: djgpp/2000/02/20/14:13:42
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 -