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. How to resolve declaration errors like "undeclared identifier 'm_devicesNames' " in QT 5.15.2?
Forum Updated to NodeBB v4.3 + New Features

How to resolve declaration errors like "undeclared identifier 'm_devicesNames' " in QT 5.15.2?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 190 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.
  • R Offline
    R Offline
    Raviteja0101
    wrote on last edited by Raviteja0101
    #1

    I'm trying to replicate a working QT code on windows 10 to receive chunks of data using bluetooth interface, but when I try to run the code it's throwing declaration errors like below, how do I resolve them without changing the code? Any leads would be highly appreciated.

    undeclared identifier m_services.clear()
    undeclared identifier m_devicesNames

    JonBJ 1 Reply Last reply
    0
    • R Raviteja0101

      I'm trying to replicate a working QT code on windows 10 to receive chunks of data using bluetooth interface, but when I try to run the code it's throwing declaration errors like below, how do I resolve them without changing the code? Any leads would be highly appreciated.

      undeclared identifier m_services.clear()
      undeclared identifier m_devicesNames

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Raviteja0101
      It would be "surprising" if you can get past such errors without changing code, because it looks like the code is wrong.

      Look at the lines where the errors occur. Check for any #... code which might vary for Windows from other platforms. Find where m_devicesNames & m_services are supposed to be declared, and why they are not. They look like member variables. The message undeclared identifier m_services.clear() is strange, because the compiler should not treat m_services.clear() as a whole as referring to an identifier....

      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