Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Makefile HEADERS-entry starting with # - question [solved]

Makefile HEADERS-entry starting with # - question [solved]

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 1.7k Views 1 Watching
  • 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.
  • Z Offline
    Z Offline
    zakarrrr
    wrote on last edited by
    #1

    Hello,

    i tried defining the headers-entry like this:

    @HEADERS += # GLOBALS
    globals/properties.h
    ...@

    If the first line is a comment like this, qMake (tested only within qtCreator) removes the folder "header files" and gives an error :

    <path to project>\src\src.pro:25: Error: Extra characters after test expression.

    This

    @HEADERS += globals/properties.h @

    or this

    @HEADERS +=
    # GLOBALS
    globals/classproperties.h
    ...@

    are ok.

    Is this a common issue or can be a bug?

    If a person is doing things behind you, he s clearly an ...
    Because he is an ..., he will tell any stories, which will make you think he is ok! -.-

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      @
      HEADERS += # GLOBALS << you are missing a backslash after +=
      globals/properties.h
      …
      @

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zakarrrr
        wrote on last edited by
        #3

        Hi,

        i think i expected that the tokens will be parsed like in c/c++. Any spaces after the keyword should be ignored. But this is common i guess.

        If a person is doing things behind you, he s clearly an ...
        Because he is an ..., he will tell any stories, which will make you think he is ok! -.-

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          It's rather like the multiline string case, you need to tell the parser that there will be something following so it must continue to read

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Z Offline
            Z Offline
            zakarrrr
            wrote on last edited by
            #5

            Ok, got it. Thanks.

            If a person is doing things behind you, he s clearly an ...
            Because he is an ..., he will tell any stories, which will make you think he is ok! -.-

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You're welcome !

              If that answers your questions, then please update the thread title prepending [solved] so other forum users may know a solution has been found :)

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • Z Offline
                Z Offline
                zakarrrr
                wrote on last edited by
                #7

                Ok, done :)

                If a person is doing things behind you, he s clearly an ...
                Because he is an ..., he will tell any stories, which will make you think he is ok! -.-

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved