How to resolve declaration errors like "undeclared identifier 'm_devicesNames' " in QT 5.15.2?
-
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 -
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@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 wherem_devicesNames
&m_services
are supposed to be declared, and why they are not. They look like member variables. The messageundeclared identifier m_services.clear()
is strange, because the compiler should not treatm_services.clear()
as a whole as referring to an identifier....