Upload Error Multiple Definitions in Dictionary at Byte 0x2db7e for Key /info

NVergunst

Super Fellow member

  • Total Posts : 390
  • Reward points : 0
  • Joined: 2007/02/11 19:58:16
  • Location: 0
  • Status: offline

Symbol has multiple definitions mistake, merely information technology doesnt...

I am getting a linking fault:

                    
MPLINK 4.22, Linker
Copyright (c) 2008 Microchip Technology Inc.
Fault - symbol 'FONT5X7' has multiple definitions.
Errors    : 1

Matter is, I define the variable but ane time:

const unsigned char FONT5X7[51][5] = {...};

If I change the name in this one location to anything else, it nevertheless comes dorsum with the same error saying it has multiple definitions. I accept searched all files in my projection for other declarations of FONT5X7, and there aren't any. So where is this phantom coming from?

BitWise

Super Member

  • Total Posts : 1238
  • Reward points : 0
  • Joined: 2004/eleven/09 xiii:24:20
  • Location: UK
  • Status: offline

RE: Symbol has multiple definitions mistake, but it doesnt... 2009/01/04 04:02:forty (permalink)

Is this defined in a .h for a .c file? Is this variable referenced in some other code module, if so how have yous defined it in that location?

More information please.

Throughout your life advance daily, becoming more proficient than yesterday, more skillful than today. This is never-ending.

Yamamoto Tsunetomo (1659-1719)

joakinubeda

Starting Member

  • Total Posts : 59
  • Advantage points : 0
  • Joined: 2009/02/16 xi:57:18
  • Location: 0
  • Status: offline

RE: Symbol has multiple definitions fault, but it doesnt... 2009/05/xi xi:57:29 (permalink)

Hello,

I have the same trouble, and my definition is en a. h file and in a.c file, i use that definition.

what is the solution?

Thank you very much!

bob_barr

Super Member

  • Total Posts : 5428
  • Reward points : 0
  • Joined: 2003/11/07 12:35:23
  • Location: Morgan Colina, CA
  • Status: offline

RE: Symbol has multiple definitions error, but information technology doesnt... 2009/05/xi 12:10:58 (permalink)

The most common cause for this happening is multiple inclusions of the definitions in a .h file. This frequently happens due to nesting of the .h files or the inclusion of one in multiple .c files.

The safest style to forbid a .h file from being included multiple times is to wrap each .h file with lines something like these:

File: mydefs.h

                    
#ifndef MYDEFS
#define MYDEFS
.
.
(regular .h file contents get here)
.
.

0 Response to "Upload Error Multiple Definitions in Dictionary at Byte 0x2db7e for Key /info"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel