Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. expected unqualified-id before ';' token
Forum Updated to NodeBB v4.3 + New Features

expected unqualified-id before ';' token

Scheduled Pinned Locked Moved Solved 3rd Party Software
slotskeywordconflict
3 Posts 2 Posters 3.1k Views
  • 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 Offline
    S Offline
    Sorut
    wrote on 24 Jan 2022, 10:22 last edited by
    #1

    Hi everybody,

    one task in my current project is to use a special network library PF_RING. When the basic header pfring.h for this library is included an extremely persistent error appears:

    expected unqualified-id before ';' token

    The error points to the following variable declaration in the header file:

    char *slots;
    

    As far as I've come, this error happens on the reuse of a language key word. In Qt obviously slots. Is there any way, to tell Qt/moc/whatever to ignore the slots variable in the third party library? As I'm not able to change the variable as it is used inside the third party library.

    Help is very much appreciated.
    Sorut

    J 1 Reply Last reply 24 Jan 2022, 10:36
    0
    • S Sorut
      24 Jan 2022, 10:22

      Hi everybody,

      one task in my current project is to use a special network library PF_RING. When the basic header pfring.h for this library is included an extremely persistent error appears:

      expected unqualified-id before ';' token

      The error points to the following variable declaration in the header file:

      char *slots;
      

      As far as I've come, this error happens on the reuse of a language key word. In Qt obviously slots. Is there any way, to tell Qt/moc/whatever to ignore the slots variable in the third party library? As I'm not able to change the variable as it is used inside the third party library.

      Help is very much appreciated.
      Sorut

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 24 Jan 2022, 10:36 last edited by
      #2

      @Sorut See https://doc.qt.io/qt-5/signalsandslots.html
      "Using Qt with 3rd Party Signals and Slots"

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply 25 Jan 2022, 06:41
      2
      • J jsulm
        24 Jan 2022, 10:36

        @Sorut See https://doc.qt.io/qt-5/signalsandslots.html
        "Using Qt with 3rd Party Signals and Slots"

        S Offline
        S Offline
        Sorut
        wrote on 25 Jan 2022, 06:41 last edited by
        #3

        @jsulm Thank you very much. That solved it.

        The search phrase "Qt 3rd party" never crossed my mind. Afterwards it's kind of obvious.

        1 Reply Last reply
        1

        3/3

        25 Jan 2022, 06:41

        • Login

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