external structur and L1823

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

external structur and L1823

Jump to solution
812 Views
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

Labels (1)
Tags (1)
0 Kudos
1 Solution
257 Views
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

View solution in original post

0 Kudos
1 Reply
258 Views
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 Kudos