You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi, when I call a member method of my singleton class, I receive the error message "unexpected token, probably type is missing" during compilation.
This is the code
Config * cfg = getEURUSD_m15_R3(); ConfigManager* cm = ConfigManager::getInstance(); cm.addConfig(cfg); // <-------------------------- RAISES ERROR
Error:
'cm' - unexpected token, probably type is missing? MyEa.mq5 125 1
When I delete that line
the EA can be compiled without errors.
And this would be the singleton class:
I really dont get any ideas what the problem could be. Maybe some double includes of the Config classe, or wrong method declaration??
Thanks everyone for every hint!