external structur and L1823

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

external structur and L1823

跳至解决方案
941 次查看
ExternalStructu
Contributor I

Hi,

I do not understand the problem

I declare in header file

 

 

typedef union{  byte bRS_Event;  struct  {    byte bStatus_1:1;    byte bStatus_2:1;        }u;}ST_FLAGS_RS_EVENT;extern ST_FLAGS_RS_EVENT stRS_Event;

 

 

 

L1823: External object stRS_Event in C:\Prog\GRx\Project1.2\Project_Data\Standard\ObjectCode\trames_rs.c.o created by default

 

Help me

 

Thank you

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
386 次查看
CrasyCat
Specialist III

Hello

 

The code snippet you have provided below is showing the declaration for variable stRS_Event.

Did you place a definition fro the same variable in one of your application .c file?

 

Definition should look as follows and must reside in a source file (not an include file).:

 

ST_FLAGS_RS_EVENT stRS_Event;

 

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
1 回复
387 次查看
CrasyCat
Specialist III

Hello

 

The code snippet you have provided below is showing the declaration for variable stRS_Event.

Did you place a definition fro the same variable in one of your application .c file?

 

Definition should look as follows and must reside in a source file (not an include file).:

 

ST_FLAGS_RS_EVENT stRS_Event;

 

CrasyCat

0 项奖励
回复