odd error while compilating

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

odd error while compilating

697 次查看
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 回复

590 次查看
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 项奖励
回复