MSCV C2338 permissive and C2139 Qstring not defined class (BLE scanner under MSVC)
-
Im trying to compile the lowenergyscanner example under windows with the MSCV 17.8.34525.116 (amd) compiler and QT 6.5.3 MSVC2019 64 Bit.
I have two errors and in I am pretty lost in the compiler internals.
The errors are
C2338 saying I have to pass permissive argument to the compiler
and
C2139 Qstring not defined class is not allowed as...I tried to tackle the C2338 like an other one by putting
"set(CMAKE_CXX_FLAGS "/permissive-")"
in the CMake.txt file, which doesn´t help.For the other one I have no idea at all.
Of course I tried to google, but I can´t fix it with what I find.
Has someone an idea?
PS.: The BTChat example works with the same Kit :)
-
Im trying to compile the lowenergyscanner example under windows with the MSCV 17.8.34525.116 (amd) compiler and QT 6.5.3 MSVC2019 64 Bit.
I have two errors and in I am pretty lost in the compiler internals.
The errors are
C2338 saying I have to pass permissive argument to the compiler
and
C2139 Qstring not defined class is not allowed as...I tried to tackle the C2338 like an other one by putting
"set(CMAKE_CXX_FLAGS "/permissive-")"
in the CMake.txt file, which doesn´t help.For the other one I have no idea at all.
Of course I tried to google, but I can´t fix it with what I find.
Has someone an idea?
PS.: The BTChat example works with the same Kit :)
@Flaming-Moe said in MSCV C2338 permissive and C2139 Qstring not defined class (BLE scanner under MSVC):
C2139 Qstring not defined class is not allowed as...
Please post the exact error and the code causing it