Windows.H not found! Help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • unknownbomb
    New Member
    • Nov 2006
    • 26

    Windows.H not found! Help

    1>------ Build started: Project: TatniumD3D, Configuration: Debug Win32 ------
    1>Compiling...
    1>d3d8tex.cpp
    1>e:\d3d_starte rkit_v3.0b\d3d8 \d3d8tex.cpp(3) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    1>d3d8int.cpp
    1>e:\d3d_starte rkit_v3.0b\d3d8 \d3d8int.cpp(3) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    1>d3d8dev.cpp
    1>e:\d3d_starte rkit_v3.0b\d3d8 \d3d8dev.cpp(3) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    1>main.cpp
    1>e:\d3d_starte rkit_v3.0b\d3d8 \main.cpp(29) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    1>d3d8.cpp
    1>e:\d3d_starte rkit_v3.0b\d3d8 \d3d8.cpp(1) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    1>Generating Code...
    1>Creating browse information file...
    1>Microsoft Browse Information Maintenance Utility Version 8.00.50727
    1>Copyright (C) Microsoft Corporation. All rights reserved.
    1>BSCMAKE: error BK1506 : cannot open file '.\Debug\main.s br': No such file or directory
    1>Build log was saved at "file://e:\D3D_Starterk it_v3.0b\D3D8\D ebug\BuildLog.h tm"
    1>TatniumD3D - 6 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Whats the problem? It cant find windows.h , Where does this file orginally to be??
    Or better , How to fix this

    Thanks
  • sake
    New Member
    • Jan 2007
    • 46

    #2
    Originally posted by unknownbomb
    1>------ Build started: Project: TatniumD3D, Configuration: Debug Win32 ------
    1>Compiling...
    1>d3d8tex.cpp
    1>e:\d3d_starte rkit_v3.0b\d3d8 \d3d8tex.cpp(3) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    1>d3d8int.cpp
    1>e:\d3d_starte rkit_v3.0b\d3d8 \d3d8int.cpp(3) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    1>d3d8dev.cpp
    1>e:\d3d_starte rkit_v3.0b\d3d8 \d3d8dev.cpp(3) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    1>main.cpp
    1>e:\d3d_starte rkit_v3.0b\d3d8 \main.cpp(29) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    1>d3d8.cpp
    1>e:\d3d_starte rkit_v3.0b\d3d8 \d3d8.cpp(1) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    1>Generating Code...
    1>Creating browse information file...
    1>Microsoft Browse Information Maintenance Utility Version 8.00.50727
    1>Copyright (C) Microsoft Corporation. All rights reserved.
    1>BSCMAKE: error BK1506 : cannot open file '.\Debug\main.s br': No such file or directory
    1>Build log was saved at "file://e:\D3D_Starterk it_v3.0b\D3D8\D ebug\BuildLog.h tm"
    1>TatniumD3D - 6 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Whats the problem? It cant find windows.h , Where does this file orginally to be??
    Or better , How to fix this

    Thanks
    I'm not an expert on this (or anything else for that matter), but I think header files are part of your compiler. So maybe a reinstall of your compiler would fix it?
    Hope that helps a bit,
    Austen

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Based on the output there I'm gona assume your using Visual Studio 2005?

      If so you are probbly missing a include path.

      Try doint the following:
      1. Go to Tools->Option
      2. From there select "Projects and Solutions" and click the "VC++ Directories"
      3. Select "Include files" from the top right dropdown box.
      4. In that list should be this line "$(VCInstallDir )PlatformSDK\In clude"
      5. If it is not, add it and you should be good to go.


      The windows.h file is in the "\VC\PlatformSD K\Include" folder in your Visual Studio install directory.

      Comment

      • nirJianWu
        New Member
        • Apr 2007
        • 7

        #4
        I'm not sure you're using Visual Studio 2005 or just the Visual C++ 2005 Express.

        If you're using the Express edition, then you have to install a platform
        SDK, in which you'll find "windows.h" .

        good luck:)

        Comment

        • unknownbomb
          New Member
          • Nov 2006
          • 26

          #5
          Im using Visual Studio 2005 yes.

          Seems ive no Windows.H there.

          Can i get the file somewhere?

          Comment

          • unknownbomb
            New Member
            • Nov 2006
            • 26

            #6
            Re: Windows.H not found! Help
            --------------------------------------------------------------------------------

            Based on the output there I'm gona assume your using Visual Studio 2005?

            If so you are probbly missing a include path.

            Try doint the following:

            Go to Tools->Option
            From there select "Projects and Solutions" and click the "VC++ Directories"
            Select "Include files" from the top right dropdown box.
            In that list should be this line "$(VCInstallDir )PlatformSDK\In clude"
            If it is not, add it and you should be good to go.

            The windows.h file is in the "\VC\PlatformSD K\Include" folder in your Visual Studio install directory.




            http://img214.imagesha ck.us/img214/2484/optionscy4.jpg

            There are the paths Visual Studio 2005 is using..

            Comment

            • ayan4u
              New Member
              • Apr 2007
              • 86

              #7
              did u write "Windows.H".... ..........????. ...as u specified...

              if tht is the case bother to write "windows.h" instead........ ..

              Comment

              • unknownbomb
                New Member
                • Nov 2006
                • 26

                #8
                Fixed it. Now it cant find D3D8.h omg :s I got that in my D3D8 map tho.

                Comment

                • unknownbomb
                  New Member
                  • Nov 2006
                  • 26

                  #9
                  Fixed it. Now it cant find D3D8.h omg :s I got that in my D3D8 map tho.

                  1>------ Build started: Project: TatniumD3D, Configuration: Debug Win32 ------
                  1>Compiling...
                  1>d3d8tex.cpp
                  1>e:\d3d_starte rkit_v3.0b\d3d8 \d3d8.h(8) : fatal error C1083: Cannot open include file: 'd3dx8.h': No such file or directory
                  1>d3d8int.cpp
                  1>e:\d3d_starte rkit_v3.0b\d3d8 \d3d8.h(8) : fatal error C1083: Cannot open include file: 'd3dx8.h': No such file or directory
                  1>d3d8dev.cpp
                  1>e:\d3d_starte rkit_v3.0b\d3d8 \d3d8.h(8) : fatal error C1083: Cannot open include file: 'd3dx8.h': No such file or directory
                  1>main.cpp
                  1>e:\d3d_starte rkit_v3.0b\d3d8 \d3d8.h(8) : fatal error C1083: Cannot open include file: 'd3dx8.h': No such file or directory
                  1>d3d8.cpp
                  1>e:\d3d_starte rkit_v3.0b\d3d8 \d3d8.h(8) : fatal error C1083: Cannot open include file: 'd3dx8.h': No such file or directory
                  1>Generating Code...
                  1>Creating browse information file...
                  1>Microsoft Browse Information Maintenance Utility Version 8.00.50727
                  1>Copyright (C) Microsoft Corporation. All rights reserved.
                  1>BSCMAKE: error BK1506 : cannot open file '.\Debug\main.s br': No such file or directory
                  1>Build log was saved at "file://e:\D3D_Starterk it_v3.0b\D3D8\D ebug\BuildLog.h tm"
                  1>TatniumD3D - 6 error(s), 0 warning(s)
                  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

                  Comment

                  • nirJianWu
                    New Member
                    • Apr 2007
                    • 7

                    #10
                    omg...

                    I do feel that your "include path" gets something wrong..

                    so can you find the "d3d8.h" header file on your local machine?

                    Comment

                    • weaknessforcats
                      Recognized Expert Expert
                      • Mar 2007
                      • 9214

                      #11
                      Whever you #include a header you have two choices:

                      #include "myheader.h "

                      or

                      #include <myheader.h>

                      The difference is that by using quotes you tell the preprocessor that the header file is in the present working directory (PWD). For Visual Studio.NET 2005, that is the folder constainf your project file (.vcproj). If the header is not there, then it must be in a "standard place".

                      By using angle berackets, the header must be in a standard place.

                      A standard place is a series of pre-defined paths to yuor header files. For a project, right-click on the project name and select Properties from the drop-down menu.
                      Next, select C/C++ in the left pane. Next, select General in the left pane. Next, put your path in the property "Addtional Include Directories". You can either type the path or use the browse buttons to navigate to the folder that contains the file and click Open. Multiple paths are separated by a semi-colon.

                      Comment

                      • Atli
                        Recognized Expert Expert
                        • Nov 2006
                        • 5062

                        #12
                        Originally posted by unknownbomb
                        Fixed it. Now it cant find D3D8.h omg :s I got that in my D3D8 map tho.
                        This is the same problem as you had with the "windows.h" file.
                        If you managed to fix that you should be able to fix this using the same method, only this time you'd want to use the Include folder in the DirectX SDK directory.

                        How did you fix the "windows.h" problem btw?

                        Comment

                        • unknownbomb
                          New Member
                          • Nov 2006
                          • 26

                          #13
                          With Downloading latest Platform SDK and move the INCLUDE, LIB,BIN Maps to the VC map.

                          ok I will try ty

                          Comment

                          Working...