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. MSCV C2338 permissive and C2139 Qstring not defined class (BLE scanner under MSVC)
Forum Updated to NodeBB v4.3 + New Features

MSCV C2338 permissive and C2139 Qstring not defined class (BLE scanner under MSVC)

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

    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 :)

    A lovely day for a ̶g̶̶u̶̶i̶̶n̶̶n̶̶e̶̶s̶ DUFF^^

    jsulmJ 1 Reply Last reply
    0
    • Flaming MoeF Flaming Moe

      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 :)

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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

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

      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