Could you please provide us more information about the issue?
but on my eclipse files I can compile it due to the external variable.
I think that you mean you can’t compile it, right? If so, please provide the compile error you met
Please send us the sample that you use so that we can find what’s wrong.