moahrs
Junior Member level 2
Hi all... again....
I use many volatile variables type in my program, because I use interruptions and others... But now, I need use this variables in other programs as global. I need to change the content of these variables in other programs. All program are of the same project.
for sample:
The normal path would be to use "extern", but wont works.
In the compiler phase, its OK, but in liker phase, I get an error that, for sample, the variable "pbyte" was not found in "xyz.o"
Any1 have any idea how I solve this problem ?
Ty a lot
Moacir Jr.
- - - Updated - - -
I founded this thread in this forum:
https://www.edaboard.com/threads/242177/
And this link in thread:
https://www.learncpp.com/cpp-tutorial/42-global-variables/
I will try this idea. declare how volatile and how extern volatile in the others programs.
Ty a lot
Moacir Jr.
I use many volatile variables type in my program, because I use interruptions and others... But now, I need use this variables in other programs as global. I need to change the content of these variables in other programs. All program are of the same project.
for sample:
volatile unsigned char pbyte;
The normal path would be to use "extern", but wont works.
In the compiler phase, its OK, but in liker phase, I get an error that, for sample, the variable "pbyte" was not found in "xyz.o"
Any1 have any idea how I solve this problem ?
Ty a lot
Moacir Jr.
- - - Updated - - -
I founded this thread in this forum:
https://www.edaboard.com/threads/242177/
And this link in thread:
https://www.learncpp.com/cpp-tutorial/42-global-variables/
I will try this idea. declare how volatile and how extern volatile in the others programs.
Ty a lot
Moacir Jr.