odd error while compilating

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

odd error while compilating

694件の閲覧回数
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?
ラベル(1)
0 件の賞賛
返信
1 返信

587件の閲覧回数
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 件の賞賛
返信