fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Constant export into MQ5: can not compile generated mq5 file

    Bug Reports
    2
    2
    694
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cloudtrade last edited by

      Hy there!

      I want to use constants in my project as seen in the following screenshots.

      mask.jpg

      constants.JPG

      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.

      code snippet.JPG

      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

      ......
      mask.jpg
      constants.JPG
      code snippet.JPG

      1 Reply Last reply Reply Quote 0
      • fxDreema
        fxDreema last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post

        Online Users

        H
        C

        12
        Online

        146.9k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors