Fatal Error C1083 Cannot Open Windows.h
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Fatal Error C1083 - Cannot open include file: “windows.h”: No such file or directory up vote 3 down vote favorite 1 Hey guys, I'm trying to get IKVM to build (see this question) but now have encountered a problem not having to do with IKVM so I'm opening up a new question: When running nant on the IKVM directory with the Visual Studio 2008 Command Prompt (from the Start Menu), I get the following error: ikvm-native-win32: [cl] Compiling 2 files to C:\ikvm-0.36.0.11\native\Release'. [cl] jni.c [cl] os.c [cl] C:\ikvm-0.36.0.11\native\os.c(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory [cl] Generating Code... BUILD FAILED C:\ikvm-0.36.0.11\native\native.build(17,10): External Program Failed: cl (return code was 2) I have the Platform SDK installed. What am I missing? I'm sure it's something simple... Edit #1 I just checked - I do have the directory containing windows.h on the Path. Edit #2 Found the answer (see my answer below): The directory containing windows.h needed to be in the "Include" path variable. c# .net path ikvm share|improve this question edited Dec 22 '10 at 14:24 BalusC 684k20824782695 asked Sep 17 '08 at 7:25 Epaga 16k42119213 add a comment| 2 Answers 2 active oldest votes up vote 5 down vote accepted OK here is the answer I ended up finding: rather than being on the Path, the directory with windows.h (in my case, C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include) needed to be set in the Include environment variable. share|improve
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up fatal error C1083: Cannot http://stackoverflow.com/questions/80788/fatal-error-c1083-cannot-open-include-file-windows-h-no-such-file-or-direc open include file: 'Windows.h': and scons up vote 8 down vote favorite Today is officially my first day with C++ :P I've downloaded Visual C++ 2005 Express Edition and Microsoft Platform SDK for Windows Server 2003 SP1, because I want to get my hands on the open source Enso Project. So, after installing scons I went to the console and tried to compile it using http://stackoverflow.com/questions/211035/fatal-error-c1083-cannot-open-include-file-windows-h-and-scons scons, but I got this error: C:\oreyes\apps\enso\enso-read-only\src\platform\win32\Include\WinSdk.h(64) : fatal error C1083: Cannot open include file: 'Windows.h': No such file or directory scons: *** [src\platform\win32\InputManager\AsyncEventProcessorRegistry.obj] Error 2 scons: building terminated because of errors. After checking these links: VS ans PSDK Include tiffi.h Wndows.h I've managed to configure my installation like this: And even run this script And I managed to compile the file below in the IDE. // Test.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include
SQL Server 2014 Express resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs https://social.msdn.microsoft.com/Forums/en-US/e162713a-ad1b-4aca-93bd-10a0d9cefa37/fatal-error-c1083-cannot-open-include-file-windowsh-no-such-file-or-directory?forum=Vsexpressvc Channel 9 Documentation APIs and reference Dev centers Retired content Samples http://www.chriscalender.com/tag/fatal-error-c1083-cannot-open-include-file-windows-h-no-such-file-or-directory/ We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: Fatal error C1083: Cannot open include file: 'windows.h': No such fatal error file or directory Archived Forums V > Visual C++ Express Edition Question 1 Sign in to vote When I try to compile a win32 sample program, I get the'fatal error C1083: Cannot open include file: 'windows.h': No such file or directory' error.I have installed and configured (even the step not in video) the most recent Platform SDK, fatal error c1083 but I still get this error!What is happening?Thanks! Tuesday, July 25, 2006 7:29 PM Answers 0 Sign in to vote The instructions on downloading and installing the Platform SDK are specifically written to let you use windows.h. You messed up somewhere but won't give us any hints how. There have been complaints, perhaps it is intentionally made difficult... Tuesday, July 25, 2006 10:20 PM Moderator All replies 0 Sign in to vote The video has an issue in step3. Look at the instructions at http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ and specifically step 3 to set the include path. Hope this helps! Thanks, Ayman Shoukry VC++ Team Tuesday, July 25, 2006 7:33 PM 0 Sign in to vote I have tried this before, but I does not help, but thanks. Tuesday, July 25, 2006 8:00 PM 0 Sign in to vote What is in your include path? Thanks, Ayman Shoukry VC++ Team Tuesday, July 25, 2006 8:44 PM 0 Sign in to vote I get the same error, not with the Console Application but with th
Variables Archives August 2015 July 2015 June 2015 May 2015 March 2015 January 2015 November 2014 October 2014 September 2014 August 2014 July 2014 June 2014 May 2014 April 2014 March 2014 February 2014 January 2014 July 2013 June 2013 April 2013 March 2013 December 2012 August 2012 June 2012 May 2012 April 2012 March 2012 February 2012 January 2012 December 2011 November 2011 October 2011 September 2011 May 2011 January 2011 November 2010 October 2010 September 2010 August 2010 July 2010 June 2010 January 2010 November 2009 October 2009 April 2009 February 2009 January 2009 Categories MariaDB MySQL WordPress Blogroll Documentation Plugins Support Forum Themes Meta Log in Entries RSS Comments RSS WordPress.org Tagsbuild mariadb build mysql chris calender compile mariadb compile mysql download mariadb download mariadb 10.0 download mariadb 10.1 download mysql 5.6 GA MariaDB General Availability MariaDB how to build mariadb on windows how to build mysql on windows innodb innodb bug innodb plugin innodb recovery Maria mariadb mariadb 5.5 MariaDB 10 General Availability mariadb 10.0 mariadb 10.0 download MariaDB 10.1 mariadb 10.1 download MariaDB Audit Plugin mariadb changelogs mariadb downloads mariadb GA MySQL mysql 5.5 MySQL 5.6 mysql 5.6 download MySQL 5.7 mysql changelog mysql changelogs mysql community mysql download mysql downloads mysql ecosystem mysql proxy MySQL Windows skysql TokuDB XtraDB Tag: fatal error C1083: Cannot open include file: ‘windows.h': No such file or directory Common Errors and Resolutions for Building your own MySQL or MariaDB C/C++ Program on Windows In my previous post, Creating a basic C/C++ Program to Interact with MySQL and MariaDB, I ran into some errors along the way, so I wanted to share those and their resolutions. 1. fatal error C1083: Cannot open include file: ‘mysql.h': No such file or directory mysql1.c mysql1.c(2) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory At this point, my cl command was: cl /I "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include" mysql1.c So I needed to include the directory that contained mysql.h as well. So the above changed to: cl /I "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include" /I "C:\Program Files\MySQL\MySQL Server 5.5\include" mysql1.c 2. error C2061: syntax error : identifier ‘SOCKET' This was actually a small slew of simple syntax errors. I could tell it wasn't the code, so I must have left something else out. Here was the full output/error: mysql1.c c:\..\mysql_com.h(291) : error C2061: syntax error : identifier 'SOCKET' c:\..\mysql_com.h(337) : error C2059: syntax