Thread: Windows.h missing

  1. #1
    Registered User
    Join Date
    Jul 2020
    Posts
    1

    Question Windows.h missing

    Every time I add "#include <windows.h>" into my code I get an error saying that the header can not be found (I use VSCode btw).

    It tells me to use vcpkg to install any missing headers, however I can not find Windows.h among them. Any idea what I need to do?

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    The compiler information is needed to help you!
    And, the Operating System (OS) information will likely be needed to help you.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  3. #3
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,733
    Look in the Program Files folder for a folder called Windows Kit or something like that, inside will be numbered folders, inside of which will be the include folder you're looking to include via the /I switch, if you don't find the folder you probably need to "install" it, search for it online with either windows sdk or windows kit

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    awsdert: VSCode is available on Linux
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  5. #5
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,733
    Quote Originally Posted by stahta01 View Post
    awsdert: VSCode is available on Linux
    Forgot about that, in that case OP should install wine and/or mingw, either one should sort xem out

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Missing MSVCR80D.dll in windows xp
    By The SharK in forum C++ Programming
    Replies: 7
    Last Post: 06-15-2006, 04:19 PM
  2. Replies: 4
    Last Post: 10-03-2005, 04:44 PM
  3. Missing Windows File
    By sean in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 05-02-2004, 09:38 AM
  4. NTLDR is missing, yet I don't even use Windows?
    By frenchfry164 in forum Tech Board
    Replies: 8
    Last Post: 07-04-2003, 10:14 PM

Tags for this Thread