Go to Post FIRST is like Starbucks coffee, it's addicting and you just can't seem to get away from it... - Beth Sweet [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2004, 19:45
Dinush Dinush is offline
Build Team!!
AKA: Dina Begun
#0912 (Iron Lyons)
Team Role: Student
 
Join Date: Feb 2002
Location: Toronto, Ontario, Canada
Posts: 26
Dinush is an unknown quantity at this point
Send a message via ICQ to Dinush Send a message via MSN to Dinush
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.
__________________
--> 2003: Winners of Canadian Regional. Thanks 1088 and 378!

Last edited by Dinush : 11-02-2004 at 19:56. Reason: Better title
  #2   Spotlight this post!  
Unread 11-02-2004, 20:28
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
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?
  #3   Spotlight this post!  
Unread 11-02-2004, 20:34
Dinush Dinush is offline
Build Team!!
AKA: Dina Begun
#0912 (Iron Lyons)
Team Role: Student
 
Join Date: Feb 2002
Location: Toronto, Ontario, Canada
Posts: 26
Dinush is an unknown quantity at this point
Send a message via ICQ to Dinush Send a message via MSN to Dinush
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.
__________________
--> 2003: Winners of Canadian Regional. Thanks 1088 and 378!
  #4   Spotlight this post!  
Unread 11-02-2004, 21:44
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
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.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiler Help Needed Darkman_X000 Programming 24 10-02-2004 12:19
Linux C18 compiler? Servo888 Robotics Education and Curriculum 1 13-12-2003 01:27
C compiler for 2004 Tim Skloss Technical Discussion 11 05-11-2003 22:02
C compiler for 2004 Tim Skloss Robotics Education and Curriculum 2 04-11-2003 16:19
PBasic Compiler Stephen Kowski Programming 2 05-06-2001 10:43


All times are GMT -5. The time now is 10:47.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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