Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Linker Error help (http://www.chiefdelphi.com/forums/showthread.php?t=25120)

Dinush 11-02-2004 19:45

Linker Error help
 
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

Re: Linker Error help
 
Quote:

Originally Posted by Dinush
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

Re: Linker Error help
 
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

Re: Linker Error help
 
Quote:

Originally Posted by Dinush
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.


All times are GMT -5. The time now is 04:22.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi