Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. stdio.h not found in QT for MVSC2019
Forum Updated to NodeBB v4.3 + New Features

stdio.h not found in QT for MVSC2019

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 462 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.
  • K Offline
    K Offline
    KMead
    wrote on last edited by
    #1

    I used to work in QT with the native compiler Mingw but I have to use MSVC in order to work with GDAL. I have installed the MVSC2019 kit for my QT version, it is well recognized, the compiler is OK, run qmake works fine, but when I compile the "stdio.h", "math.h" and so on are not recognized.

    I have installed in the .pro file an INCLUDEPATH to the location of my SDK :

    INCLUDEPATH += C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt
    INCLUDEPATH += C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared

    But the files are still not recognized, whereas stdio.h is well in the C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt folder.

    What I am doing wrong, and how can I correct this?

    Many thanks by advance.

    JonBJ 1 Reply Last reply
    0
    • K KMead

      I used to work in QT with the native compiler Mingw but I have to use MSVC in order to work with GDAL. I have installed the MVSC2019 kit for my QT version, it is well recognized, the compiler is OK, run qmake works fine, but when I compile the "stdio.h", "math.h" and so on are not recognized.

      I have installed in the .pro file an INCLUDEPATH to the location of my SDK :

      INCLUDEPATH += C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt
      INCLUDEPATH += C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\shared

      But the files are still not recognized, whereas stdio.h is well in the C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\ucrt folder.

      What I am doing wrong, and how can I correct this?

      Many thanks by advance.

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

      @KMead
      I don't use Windows/MSVC, but don't those paths with spaces need quoting? And while we're at it maybe / for \. I would try

      INCLUDEPATH += "C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0/ucrt"
      
      1 Reply Last reply
      0
      • K Offline
        K Offline
        KMead
        wrote on last edited by
        #3

        Many thanks, JOnB, it was actually "C://Program Files (x86)//Windows Kits//10//Include//10.0.19041.0//ucrt"

        But your suggestion put me on the right track!

        Thanks again for your quick answer.

        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