Hi Friends,
I have created two addons, what is expected is to extern a variable from one addon to another addon.
But when I extern the global variable declared in one addon to another.
In the addon where I am doing extern, I am getting symbol not defined error for that variable.
Please help me with a solution for this.
Also I do not want to pass that variable back to JS and then pass to another addon from there because of security constraints.
Code from Addon1.node:
char libVersion[] = "test string";
Code from Addon2.node:
extern char libVersion[];
Thanks & Regards,
Dheeraj