PDA

View Full Version : Linker Error help


Dinush
02-11-2004, 06:45 PM
I keep getting a compiler error:

MPLINK 3.40, Linker
Copyright (c) 2003 Microchip Technology Inc.
Error - symbol 'cal_joy' has multiple definitions.
Errors : 1


Even though it's only declared once in the header file (this is in my own header file and I have included the #ifndef, #define, #endif preprocessor lines.

Thanks.

Dave Flowerday
02-11-2004, 07:28 PM
I keep getting a compiler error:

MPLINK 3.40, Linker
Copyright (c) 2003 Microchip Technology Inc.
Error - symbol 'cal_joy' has multiple definitions.
Errors : 1


Even though it's only declared once in the header file (this is in my own header file and I have included the #ifndef, #define, #endif preprocessor lines.

Thanks.
Can you post the declaration from the header file?

Dinush
02-11-2004, 07:34 PM
Figured it out. It didn't like me declaring my variables in the header file because when I moved it to the source file, it compiled fine.

Dave Flowerday
02-11-2004, 08:44 PM
Figured it out. It didn't like me declaring my variables in the header file because when I moved it to the source file, it compiled fine.
That's what I suspected. Glad you got it fixed.