odd error while compilating

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

odd error while compilating

693 Views
DavidAndrade
Contributor I
hey, I'm doing a wireless ADC application, and I made a couple of "libraries" to handle some of the events, in one of those I declare an array with 10 characters (from '0' to '9'), but I'm new at codewarrior programing so when I try to complie it, it shows "link error L1818 variable nums duplicates in.....", but in the most of the libraries it bugs me, I'm not using that array, ¿can anyone help me?
Labels (1)
0 Kudos
Reply
1 Reply

586 Views
CrasyCat
Specialist III

Hello

 

This is usually generated when you have variable definition instead of declaration in a header file.

 

A variable must be defined in a C source file as follows:

 

char array[] =  "0123456789";

 

A header file should only include variable declaration as follows:

 

extern char array[];

 

CrasyCat 

0 Kudos
Reply