Thread: MPLink Error
View Single Post
  #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?