How to access extern variables in an include file?

 

hi all,

I have created an include and an EA file. How do I access the extern variables (or any other file level variables) of EA in my include file? Include file is not compiling if I just directly refer the variables.

C

 
you don't need to compile the include file separately. It will be included and compiled together with the main file if you compile the main file.
 

Thank you very much!

 
You must declare the EA externs, then include the file.
Reason: