fxDreema

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

    Compilation Error

    Questions & Answers
    2
    3
    949
    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.
    • S
      SydneyFox last edited by

      I have made some changes to an EA (that was working) and forgot to save it as a new version.

      I am now getting the following Compilation error:

      'return' - function must return a value

      It is listed 10 times. What does it mean? How do I find where the error is? How do I fix it?

      Thanks

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

        So you opened the .mq4 (or .mq5 file) and deleted something in it? Well, if you don't understand MQL... what are you doing there :))) But you can always import that file back to fxDreema and generate the same source code (there is some code at the bottom of the file that fxDreema can understand). But you should have the project in fxDreema already, so now I'm thinking that I probably didn't understood your question.

        1 Reply Last reply Reply Quote 0
        • S
          SydneyFox last edited by

          I think you're right. I don't think you understood my question 🙂

          I don't understand MQL but was definitely not playing with the source code.

          I eventually found the error. I had made a change to some comment blocks that didn't work when compiling. Once I got them back to their original state it worked again.

          Thanks.

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

          Online Users

          D
          T
          M
          E
          F
          M
          K
          E
          E
          O

          16
          Online

          146.7k
          Users

          22.4k
          Topics

          122.6k
          Posts

          Powered by NodeBB Forums | Contributors