Go to Post Everyone needs to start working with what they are given, and start appreciating FIRST, not complaining about what they think FIRST is doing wrong. - Marygrace [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-02-2005, 22:41
cloudago cloudago is offline
Registered User
#0662
 
Join Date: Jan 2005
Location: Colorado Springs
Posts: 3
cloudago is an unknown quantity at this point
Send a message via AIM to cloudago
MPLink Error

We ran into a problem when we tried defining unsigned chars in a header file and running into a Linker error that claimed that a variable had multiple definitions.

This is what we have in the header file which causes the error:
long int KP_P = 5;

This is the error given by the Linker:
Error - symbol 'KP_P' has multiple definitions.

This source code does not cause an error:
#define KP_P (5)

Declaring the variable as a long int in the *.c file does not cause any errors, it is only in the header file that it causes the error.

Has anyone run into this error or is it a bug in the Linker?
 


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
MPLab build error Derek t Programming 7 17-01-2005 09:33
error - Invalid 18f8520 header file! vtrehan Programming 2 16-11-2004 08:31
Confusing Compiler Error UrsaMNet Programming 2 28-10-2004 14:32
PHP and Wiki Error Venkatesh Website Design/Showcase 2 24-07-2004 15:51
Linker Error Max Lobovsky Programming 4 27-05-2004 20:16


All times are GMT -5. The time now is 01:32.

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