Constant export into MQ5: can not compile generated mq5 file
-
Hy there!
I want to use constants in my project as seen in the following screenshots.

When i export the project to mq5, the code that gets generated doesn't compile.
On the following line (where the mouse cursor is visible), an error occures.
The error message to it is as following:
__'free' - declaration without type[/quote:24y6we6e]Is this even a bug in the code generation process, or am i missing some basic syntax behaviour from c++ or mql5 (e.g. missing library or similar)?
I hope someone can give me a hint.

Thx in advance!
Greets, CloudTrade
-
Please, don't check the checkbox for optimization when you have Constant or Variable in there
Ugly things happen because Constant and checkboxes do the same thing. And better use those checkboxes only temporarily, when you want to optimize something.