Log in

View Full Version : Linker Error help


Dinush
11-02-2004, 19:45
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
11-02-2004, 20:28
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
11-02-2004, 20:34
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
11-02-2004, 21:44
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.