I've recreated the ObjectsTest example and made sure it compiles clean. It does.
Next, I added a State.h and State.cpp to the ObjectsTest.cpp file which contains a class and methods. Now I'm getting a lot of errors like:
Code: Select all
Severity Code Description Project File Line Suppression State
Error C3861 'iTime': identifier not found StrategyTest C:\Users\andre\source\repos\StrategyTest\StrategyTest\State.cpp 19
iTime is contained in the StrategyUnitInterface.h file which is 2 levels above. No namespaces are in use to my knowledge and I thought StrategyUnitInterface.h and TechnicalFunctions.h would define the functions globally. Clearly, this isn't the case so how do I access the FT4 api from within my class.
I've tried iTime, ::iTime and StrategyUnitInterface::iTime but these don't work.
Help! I'm stuck.
Thanks.