Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Creator Installation issue : Cannot open include file: 'windows.h'
Forum Updated to NodeBB v4.3 + New Features

Qt Creator Installation issue : Cannot open include file: 'windows.h'

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 3 Posters 9.7k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    Craig27
    wrote on 29 Oct 2012, 05:23 last edited by
    #1

    Hi,

    I have installed 'Qt Creator 2.4.1 Based on Qt 4.7.4 (32 bit)' on Windows 7 with Visual studio 2008. But on creating the basic project am getting following error :

    @c:\qtsdk\desktop\qt\4.8.1\msvc2008\mkspecs\win32-msvc2008..\win32-msvc2005\qplatformdefs.h:67: error: C1083: Cannot open include file: 'windows.h': No such file or directory@
    Also checked the windows.h its present in following location : C:\Program Files\Microsoft SDKs\Windows\v7.0A\Include\

    I would like to mention that I can't use the MinGW target due to project specifications.

    Requesting everyone to help me out of this situation.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on 29 Oct 2012, 17:54 last edited by
      #2

      Have you tried using a newer version of Creator? 2.4 is rather oldish...

      Did Creator pick up the compiler correctly? Is your project configured to use the right compiler?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        allopen
        wrote on 21 Dec 2012, 05:14 last edited by
        #3

        in Qt Creator, Tools--Options, Build&Run, Kits, choose a kit and edit its attributes, change the Compiler from "Microsoft Windows SDK ..." to "Microsoft Visual C++ Compiler 9.0 (x86)".

        I solved the same problem by this way.

        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